#[non_exhaustive]pub struct BatchRecognizeMetadata {
pub transcription_metadata: HashMap<String, BatchRecognizeTranscriptionMetadata>,
/* private fields */
}Expand description
Operation metadata for BatchRecognize.
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.transcription_metadata: HashMap<String, BatchRecognizeTranscriptionMetadata>Map from provided filename to the transcription metadata for that file.
Implementations§
Source§impl BatchRecognizeMetadata
impl BatchRecognizeMetadata
pub fn new() -> Self
Sourcepub fn set_transcription_metadata<T, K, V>(self, v: T) -> Selfwhere
T: IntoIterator<Item = (K, V)>,
K: Into<String>,
V: Into<BatchRecognizeTranscriptionMetadata>,
pub fn set_transcription_metadata<T, K, V>(self, v: T) -> Selfwhere
T: IntoIterator<Item = (K, V)>,
K: Into<String>,
V: Into<BatchRecognizeTranscriptionMetadata>,
Sets the value of transcription_metadata.
§Example
ⓘ
use google_cloud_speech_v2::model::BatchRecognizeTranscriptionMetadata;
let x = BatchRecognizeMetadata::new().set_transcription_metadata([
("key0", BatchRecognizeTranscriptionMetadata::default()/* use setters */),
("key1", BatchRecognizeTranscriptionMetadata::default()/* use (different) setters */),
]);Trait Implementations§
Source§impl Clone for BatchRecognizeMetadata
impl Clone for BatchRecognizeMetadata
Source§fn clone(&self) -> BatchRecognizeMetadata
fn clone(&self) -> BatchRecognizeMetadata
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 BatchRecognizeMetadata
impl Debug for BatchRecognizeMetadata
Source§impl Default for BatchRecognizeMetadata
impl Default for BatchRecognizeMetadata
Source§fn default() -> BatchRecognizeMetadata
fn default() -> BatchRecognizeMetadata
Returns the “default value” for a type. Read more
Source§impl Message for BatchRecognizeMetadata
impl Message for BatchRecognizeMetadata
Source§impl PartialEq for BatchRecognizeMetadata
impl PartialEq for BatchRecognizeMetadata
impl StructuralPartialEq for BatchRecognizeMetadata
Auto Trait Implementations§
impl Freeze for BatchRecognizeMetadata
impl RefUnwindSafe for BatchRecognizeMetadata
impl Send for BatchRecognizeMetadata
impl Sync for BatchRecognizeMetadata
impl Unpin for BatchRecognizeMetadata
impl UnwindSafe for BatchRecognizeMetadata
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