mirror of
https://github.com/ndarilek/tts-rs.git
synced 2024-11-17 11:49:37 +00:00
Derive common traits for Gender and Voice
This commit is contained in:
parent
b3d2b788f7
commit
15f28c9af4
|
@ -648,13 +648,13 @@ impl Drop for Tts {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug)]
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
pub enum Gender {
|
||||
Male,
|
||||
Female,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
pub struct Voice {
|
||||
pub(crate) id: String,
|
||||
pub(crate) name: String,
|
||||
|
|
Loading…
Reference in New Issue
Block a user