#[non_exhaustive]pub struct PrebuiltVoiceConfig {
pub voice_name: Option<String>,
/* private fields */
}Available on crate features
llm-utility-service or prediction-service only.Expand description
Configuration for a prebuilt voice.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.voice_name: Option<String>The name of the prebuilt voice to use.
Implementations§
Source§impl PrebuiltVoiceConfig
impl PrebuiltVoiceConfig
pub fn new() -> Self
Sourcepub fn set_voice_name<T>(self, v: T) -> Self
pub fn set_voice_name<T>(self, v: T) -> Self
Sets the value of voice_name.
§Example
ⓘ
let x = PrebuiltVoiceConfig::new().set_voice_name("example");Sourcepub fn set_or_clear_voice_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_voice_name<T>(self, v: Option<T>) -> Self
Sets or clears the value of voice_name.
§Example
ⓘ
let x = PrebuiltVoiceConfig::new().set_or_clear_voice_name(Some("example"));
let x = PrebuiltVoiceConfig::new().set_or_clear_voice_name(None::<String>);Trait Implementations§
Source§impl Clone for PrebuiltVoiceConfig
impl Clone for PrebuiltVoiceConfig
Source§fn clone(&self) -> PrebuiltVoiceConfig
fn clone(&self) -> PrebuiltVoiceConfig
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 PrebuiltVoiceConfig
impl Debug for PrebuiltVoiceConfig
Source§impl Default for PrebuiltVoiceConfig
impl Default for PrebuiltVoiceConfig
Source§fn default() -> PrebuiltVoiceConfig
fn default() -> PrebuiltVoiceConfig
Returns the “default value” for a type. Read more
Source§impl Message for PrebuiltVoiceConfig
impl Message for PrebuiltVoiceConfig
Source§impl PartialEq for PrebuiltVoiceConfig
impl PartialEq for PrebuiltVoiceConfig
impl StructuralPartialEq for PrebuiltVoiceConfig
Auto Trait Implementations§
impl Freeze for PrebuiltVoiceConfig
impl RefUnwindSafe for PrebuiltVoiceConfig
impl Send for PrebuiltVoiceConfig
impl Sync for PrebuiltVoiceConfig
impl Unpin for PrebuiltVoiceConfig
impl UnwindSafe for PrebuiltVoiceConfig
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