From 15f28c9af4f93f6013874e351ee53de968b39fb8 Mon Sep 17 00:00:00 2001 From: Bear-03 <64696287+Bear-03@users.noreply.github.com> Date: Thu, 21 Jul 2022 01:25:14 +0200 Subject: [PATCH] Derive common traits for Gender and Voice --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 76c7b94..8a8df57 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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,