#[non_exhaustive]pub struct BatchRecognizeTranscriptionMetadata {
pub progress_percent: i32,
pub error: Option<Status>,
pub uri: String,
/* private fields */
}Expand description
Metadata about transcription for a single file (for example, progress percent).
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.progress_percent: i32How much of the file has been transcribed so far.
error: Option<Status>Error if one was encountered.
uri: StringThe Cloud Storage URI to which recognition results will be written.
Implementations§
Source§impl BatchRecognizeTranscriptionMetadata
impl BatchRecognizeTranscriptionMetadata
pub fn new() -> Self
Sourcepub fn set_progress_percent<T: Into<i32>>(self, v: T) -> Self
pub fn set_progress_percent<T: Into<i32>>(self, v: T) -> Self
Sets the value of progress_percent.
§Example
ⓘ
let x = BatchRecognizeTranscriptionMetadata::new().set_progress_percent(42);Sourcepub fn set_or_clear_error<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_error<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for BatchRecognizeTranscriptionMetadata
impl Clone for BatchRecognizeTranscriptionMetadata
Source§fn clone(&self) -> BatchRecognizeTranscriptionMetadata
fn clone(&self) -> BatchRecognizeTranscriptionMetadata
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 Default for BatchRecognizeTranscriptionMetadata
impl Default for BatchRecognizeTranscriptionMetadata
Source§fn default() -> BatchRecognizeTranscriptionMetadata
fn default() -> BatchRecognizeTranscriptionMetadata
Returns the “default value” for a type. Read more
Source§impl PartialEq for BatchRecognizeTranscriptionMetadata
impl PartialEq for BatchRecognizeTranscriptionMetadata
Source§fn eq(&self, other: &BatchRecognizeTranscriptionMetadata) -> bool
fn eq(&self, other: &BatchRecognizeTranscriptionMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BatchRecognizeTranscriptionMetadata
Auto Trait Implementations§
impl Freeze for BatchRecognizeTranscriptionMetadata
impl RefUnwindSafe for BatchRecognizeTranscriptionMetadata
impl Send for BatchRecognizeTranscriptionMetadata
impl Sync for BatchRecognizeTranscriptionMetadata
impl Unpin for BatchRecognizeTranscriptionMetadata
impl UnwindSafe for BatchRecognizeTranscriptionMetadata
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