Merge pull request #28 from Bear-03/traits

Derive common traits for Gender and Voice
This commit is contained in:
Nolan Darilek 2022-07-22 09:57:49 -05:00 committed by GitHub
commit b50c5b6b93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -648,13 +648,13 @@ impl Drop for Tts {
} }
} }
#[derive(Clone, Copy, Debug)] #[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub enum Gender { pub enum Gender {
Male, Male,
Female, Female,
} }
#[derive(Clone, Debug)] #[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct Voice { pub struct Voice {
pub(crate) id: String, pub(crate) id: String,
pub(crate) name: String, pub(crate) name: String,