Derive common traits for Gender and Voice

This commit is contained in:
Bear-03 2022-07-21 01:25:14 +02:00
parent b3d2b788f7
commit 15f28c9af4
No known key found for this signature in database
GPG Key ID: 3D1DC5AFDA57B32E
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 {
Male,
Female,
}
#[derive(Clone, Debug)]
#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct Voice {
pub(crate) id: String,
pub(crate) name: String,