pub struct PreviewVoiceRequest {
pub voice_id: String,
pub text: Option<String>,
}Fields§
§voice_id: StringVoice ID to preview
text: Option<String>Optional custom sample text (uses default if not provided)
Implementations§
Source§impl PreviewVoiceRequest
impl PreviewVoiceRequest
pub const DEFAULT_SAMPLE_TEXT: &'static str = "Hello! This is a sample of how this voice sounds."
pub fn sample_text(&self) -> Cow<'_, str>
pub fn validate(&self) -> Result<(), ValidationError>
Trait Implementations§
Source§impl Debug for PreviewVoiceRequest
impl Debug for PreviewVoiceRequest
Source§impl<'de> Deserialize<'de> for PreviewVoiceRequest
impl<'de> Deserialize<'de> for PreviewVoiceRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PreviewVoiceRequest
impl RefUnwindSafe for PreviewVoiceRequest
impl Send for PreviewVoiceRequest
impl Sync for PreviewVoiceRequest
impl Unpin for PreviewVoiceRequest
impl UnsafeUnpin for PreviewVoiceRequest
impl UnwindSafe for PreviewVoiceRequest
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