pub struct SpeakRequest {
pub text: String,
pub voice: Option<String>,
}Expand description
One utterance to render, with the voice it renders in.
Fields§
§text: String§voice: Option<String>The voice id for this utterance. None uses DEFAULT_VOICE; an id
that is not installed is refused rather than replaced by one.
Trait Implementations§
Source§impl Clone for SpeakRequest
impl Clone for SpeakRequest
Auto Trait Implementations§
impl Freeze for SpeakRequest
impl RefUnwindSafe for SpeakRequest
impl Send for SpeakRequest
impl Sync for SpeakRequest
impl Unpin for SpeakRequest
impl UnsafeUnpin for SpeakRequest
impl UnwindSafe for SpeakRequest
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