Struct google_texttospeech1::api::SynthesisInput
source · pub struct SynthesisInput {
pub ssml: Option<String>,
pub text: Option<String>,
}
Expand description
Contains text input to be synthesized. Either text
or ssml
must be supplied. Supplying both or neither returns google.rpc.Code.INVALID_ARGUMENT. The input size is limited to 5000 bytes.
This type is not used in any activity, and only used as part of another schema.
Fields§
§ssml: Option<String>
The SSML document to be synthesized. The SSML document must be valid and well-formed. Otherwise the RPC will fail and return google.rpc.Code.INVALID_ARGUMENT. For more information, see SSML.
text: Option<String>
The raw text to be synthesized.
Trait Implementations§
source§impl Clone for SynthesisInput
impl Clone for SynthesisInput
source§fn clone(&self) -> SynthesisInput
fn clone(&self) -> SynthesisInput
Returns a copy 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 SynthesisInput
impl Debug for SynthesisInput
source§impl Default for SynthesisInput
impl Default for SynthesisInput
source§fn default() -> SynthesisInput
fn default() -> SynthesisInput
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SynthesisInput
impl<'de> Deserialize<'de> for SynthesisInput
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
source§impl Serialize for SynthesisInput
impl Serialize for SynthesisInput
impl Part for SynthesisInput
Auto Trait Implementations§
impl RefUnwindSafe for SynthesisInput
impl Send for SynthesisInput
impl Sync for SynthesisInput
impl Unpin for SynthesisInput
impl UnwindSafe for SynthesisInput
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