#[non_exhaustive]pub struct UtteranceInputSpecification {
pub text_input: Option<String>,
pub audio_input: Option<UtteranceAudioInputSpecification>,
}Expand description
Contains information about input of an utterance.
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.text_input: Option<String>A text input transcription of the utterance. It is only applicable for test-sets containing text data.
audio_input: Option<UtteranceAudioInputSpecification>Contains information about the audio input for an utterance.
Implementations§
source§impl UtteranceInputSpecification
impl UtteranceInputSpecification
sourcepub fn text_input(&self) -> Option<&str>
pub fn text_input(&self) -> Option<&str>
A text input transcription of the utterance. It is only applicable for test-sets containing text data.
sourcepub fn audio_input(&self) -> Option<&UtteranceAudioInputSpecification>
pub fn audio_input(&self) -> Option<&UtteranceAudioInputSpecification>
Contains information about the audio input for an utterance.
source§impl UtteranceInputSpecification
impl UtteranceInputSpecification
sourcepub fn builder() -> UtteranceInputSpecificationBuilder
pub fn builder() -> UtteranceInputSpecificationBuilder
Creates a new builder-style object to manufacture UtteranceInputSpecification.
Trait Implementations§
source§impl Clone for UtteranceInputSpecification
impl Clone for UtteranceInputSpecification
source§fn clone(&self) -> UtteranceInputSpecification
fn clone(&self) -> UtteranceInputSpecification
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 UtteranceInputSpecification
impl Debug for UtteranceInputSpecification
source§impl PartialEq for UtteranceInputSpecification
impl PartialEq for UtteranceInputSpecification
source§fn eq(&self, other: &UtteranceInputSpecification) -> bool
fn eq(&self, other: &UtteranceInputSpecification) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for UtteranceInputSpecification
Auto Trait Implementations§
impl Freeze for UtteranceInputSpecification
impl RefUnwindSafe for UtteranceInputSpecification
impl Send for UtteranceInputSpecification
impl Sync for UtteranceInputSpecification
impl Unpin for UtteranceInputSpecification
impl UnwindSafe for UtteranceInputSpecification
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.