mirror of
https://github.com/ndarilek/tts-rs.git
synced 2024-11-22 23:49:38 +00:00
Merge pull request #28 from Bear-03/traits
Derive common traits for Gender and Voice
This commit is contained in:
commit
b50c5b6b93
|
@ -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