#[non_exhaustive]pub struct Voice {Show 19 fields
pub accent: Option<String>,
pub context: Option<String>,
pub description: Option<String>,
pub display_name: Option<String>,
pub expire_time: Option<String>,
pub gender: Option<String>,
pub id: Option<String>,
pub key: Option<String>,
pub language_code: Option<String>,
pub model: Option<String>,
pub persona: Option<String>,
pub pitch: Option<Pitch>,
pub prompted: Option<PromptedVoice>,
pub region_code: Option<String>,
pub replicated: Option<ReplicatedVoice>,
pub sample_audio: Option<AudioData>,
pub type_: VoiceType,
pub usage: Option<Usage>,
pub rest: Rest,
}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.accent: Option<String>§context: Option<String>§description: Option<String>§display_name: Option<String>§expire_time: Option<String>Output only.
gender: Option<String>§id: Option<String>Output only.
key: Option<String>Output only.
language_code: Option<String>§model: Option<String>§persona: Option<String>§pitch: Option<Pitch>§prompted: Option<PromptedVoice>§region_code: Option<String>§replicated: Option<ReplicatedVoice>Input only; the server does not return consent or reference recordings.
sample_audio: Option<AudioData>Output only.
type_: VoiceType§usage: Option<Usage>Output only.
rest: RestImplementations§
Trait Implementations§
Source§impl DeclaredFields for Voice
impl DeclaredFields for Voice
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for Voice
impl<'de> Deserialize<'de> for Voice
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
impl StructuralPartialEq for Voice
Auto Trait Implementations§
impl Freeze for Voice
impl RefUnwindSafe for Voice
impl Send for Voice
impl Sync for Voice
impl Unpin for Voice
impl UnsafeUnpin for Voice
impl UnwindSafe for Voice
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