#[non_exhaustive]pub struct BatchRecognizeResponse {
pub results: HashMap<String, BatchRecognizeFileResult>,
pub total_billed_duration: Option<Duration>,
/* private fields */
}Expand description
Response message for BatchRecognize that is packaged into a longrunning Operation.
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: HashMap<String, BatchRecognizeFileResult>Map from filename to the final result for that file.
total_billed_duration: Option<Duration>When available, billed audio seconds for the corresponding request.
Implementations§
Source§impl BatchRecognizeResponse
impl BatchRecognizeResponse
pub fn new() -> Self
Sourcepub fn set_results<T, K, V>(self, v: T) -> Self
pub fn set_results<T, K, V>(self, v: T) -> Self
Sourcepub fn set_total_billed_duration<T>(self, v: T) -> Self
pub fn set_total_billed_duration<T>(self, v: T) -> Self
Sets the value of total_billed_duration.
§Example
ⓘ
use wkt::Duration;
let x = BatchRecognizeResponse::new().set_total_billed_duration(Duration::default()/* use setters */);Sourcepub fn set_or_clear_total_billed_duration<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_total_billed_duration<T>(self, v: Option<T>) -> Self
Sets or clears the value of total_billed_duration.
§Example
ⓘ
use wkt::Duration;
let x = BatchRecognizeResponse::new().set_or_clear_total_billed_duration(Some(Duration::default()/* use setters */));
let x = BatchRecognizeResponse::new().set_or_clear_total_billed_duration(None::<Duration>);Trait Implementations§
Source§impl Clone for BatchRecognizeResponse
impl Clone for BatchRecognizeResponse
Source§fn clone(&self) -> BatchRecognizeResponse
fn clone(&self) -> BatchRecognizeResponse
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 BatchRecognizeResponse
impl Debug for BatchRecognizeResponse
Source§impl Default for BatchRecognizeResponse
impl Default for BatchRecognizeResponse
Source§fn default() -> BatchRecognizeResponse
fn default() -> BatchRecognizeResponse
Returns the “default value” for a type. Read more
Source§impl Message for BatchRecognizeResponse
impl Message for BatchRecognizeResponse
Source§impl PartialEq for BatchRecognizeResponse
impl PartialEq for BatchRecognizeResponse
impl StructuralPartialEq for BatchRecognizeResponse
Auto Trait Implementations§
impl Freeze for BatchRecognizeResponse
impl RefUnwindSafe for BatchRecognizeResponse
impl Send for BatchRecognizeResponse
impl Sync for BatchRecognizeResponse
impl Unpin for BatchRecognizeResponse
impl UnwindSafe for BatchRecognizeResponse
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