pub struct ComposerSettings {
pub voice_id: Option<String>,
pub model: Option<TTSModel>,
pub language: Option<String>,
pub prompt: Option<TTSPrompt>,
pub output: Option<Output>,
pub seed: Option<i32>,
}Fields§
§voice_id: Option<String>§model: Option<TTSModel>§language: Option<String>§prompt: Option<TTSPrompt>§output: Option<Output>§seed: Option<i32>Implementations§
Source§impl ComposerSettings
impl ComposerSettings
pub fn new() -> Self
pub fn voice_id(self, voice_id: impl Into<String>) -> Self
pub fn model(self, model: TTSModel) -> Self
pub fn language(self, language: impl Into<String>) -> Self
pub fn prompt(self, prompt: impl Into<TTSPrompt>) -> Self
pub fn output(self, output: Output) -> Self
pub fn seed(self, seed: i32) -> Self
Trait Implementations§
Source§impl Clone for ComposerSettings
impl Clone for ComposerSettings
Source§fn clone(&self) -> ComposerSettings
fn clone(&self) -> ComposerSettings
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ComposerSettings
impl Debug for ComposerSettings
Source§impl Default for ComposerSettings
impl Default for ComposerSettings
Source§fn default() -> ComposerSettings
fn default() -> ComposerSettings
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ComposerSettings
impl RefUnwindSafe for ComposerSettings
impl Send for ComposerSettings
impl Sync for ComposerSettings
impl Unpin for ComposerSettings
impl UnsafeUnpin for ComposerSettings
impl UnwindSafe for ComposerSettings
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