pub struct LanguageAccentPair {
pub lang: String,
pub accent: Option<String>,
}
Expand description
A language accent pair, this will be a language (required) and an optional accent in which to speak the language.
Fields§
§lang: String
Language the voice is desired to speak.
accent: Option<String>
Optional accent to apply to the language.
Trait Implementations§
Source§impl Clone for LanguageAccentPair
impl Clone for LanguageAccentPair
Source§fn clone(&self) -> LanguageAccentPair
fn clone(&self) -> LanguageAccentPair
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LanguageAccentPair
impl Debug for LanguageAccentPair
Source§impl Display for LanguageAccentPair
impl Display for LanguageAccentPair
Source§impl FromStr for LanguageAccentPair
impl FromStr for LanguageAccentPair
Source§impl Hash for LanguageAccentPair
impl Hash for LanguageAccentPair
Source§impl Ord for LanguageAccentPair
impl Ord for LanguageAccentPair
Source§fn cmp(&self, other: &LanguageAccentPair) -> Ordering
fn cmp(&self, other: &LanguageAccentPair) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LanguageAccentPair
impl PartialEq for LanguageAccentPair
Source§impl PartialOrd for LanguageAccentPair
impl PartialOrd for LanguageAccentPair
impl Eq for LanguageAccentPair
impl StructuralPartialEq for LanguageAccentPair
Auto Trait Implementations§
impl Freeze for LanguageAccentPair
impl RefUnwindSafe for LanguageAccentPair
impl Send for LanguageAccentPair
impl Sync for LanguageAccentPair
impl Unpin for LanguageAccentPair
impl UnwindSafe for LanguageAccentPair
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more