#[non_exhaustive]pub struct BatchRecognizeResults {
pub results: Vec<SpeechRecognitionResult>,
pub metadata: Option<RecognitionResponseMetadata>,
/* private fields */
}Expand description
Output type for Cloud Storage of BatchRecognize transcripts. Though this proto isn’t returned in this API anywhere, the Cloud Storage transcripts will be this proto serialized and should be parsed as such.
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.results: Vec<SpeechRecognitionResult>Sequential list of transcription results corresponding to sequential portions of audio.
metadata: Option<RecognitionResponseMetadata>Metadata about the recognition.
Implementations§
Source§impl BatchRecognizeResults
impl BatchRecognizeResults
pub fn new() -> Self
Sourcepub fn set_results<T, V>(self, v: T) -> Self
pub fn set_results<T, V>(self, v: T) -> Self
Sourcepub fn set_metadata<T>(self, v: T) -> Selfwhere
T: Into<RecognitionResponseMetadata>,
pub fn set_metadata<T>(self, v: T) -> Selfwhere
T: Into<RecognitionResponseMetadata>,
Sourcepub fn set_or_clear_metadata<T>(self, v: Option<T>) -> Selfwhere
T: Into<RecognitionResponseMetadata>,
pub fn set_or_clear_metadata<T>(self, v: Option<T>) -> Selfwhere
T: Into<RecognitionResponseMetadata>,
Sets or clears the value of metadata.
§Example
ⓘ
use google_cloud_speech_v2::model::RecognitionResponseMetadata;
let x = BatchRecognizeResults::new().set_or_clear_metadata(Some(RecognitionResponseMetadata::default()/* use setters */));
let x = BatchRecognizeResults::new().set_or_clear_metadata(None::<RecognitionResponseMetadata>);Trait Implementations§
Source§impl Clone for BatchRecognizeResults
impl Clone for BatchRecognizeResults
Source§fn clone(&self) -> BatchRecognizeResults
fn clone(&self) -> BatchRecognizeResults
Returns a duplicate 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 BatchRecognizeResults
impl Debug for BatchRecognizeResults
Source§impl Default for BatchRecognizeResults
impl Default for BatchRecognizeResults
Source§fn default() -> BatchRecognizeResults
fn default() -> BatchRecognizeResults
Returns the “default value” for a type. Read more
Source§impl Message for BatchRecognizeResults
impl Message for BatchRecognizeResults
Source§impl PartialEq for BatchRecognizeResults
impl PartialEq for BatchRecognizeResults
impl StructuralPartialEq for BatchRecognizeResults
Auto Trait Implementations§
impl Freeze for BatchRecognizeResults
impl RefUnwindSafe for BatchRecognizeResults
impl Send for BatchRecognizeResults
impl Sync for BatchRecognizeResults
impl Unpin for BatchRecognizeResults
impl UnwindSafe for BatchRecognizeResults
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