#[non_exhaustive]pub struct ReviewDocumentOperationMetadata {
pub common_metadata: Option<CommonOperationMetadata>,
pub question_id: String,
/* private fields */
}Expand description
The long-running operation metadata for the ReviewDocument method.
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.common_metadata: Option<CommonOperationMetadata>The basic metadata of the long-running operation.
question_id: StringThe Crowd Compute question ID.
Implementations§
Source§impl ReviewDocumentOperationMetadata
impl ReviewDocumentOperationMetadata
pub fn new() -> Self
Sourcepub fn set_common_metadata<T>(self, v: T) -> Selfwhere
T: Into<CommonOperationMetadata>,
pub fn set_common_metadata<T>(self, v: T) -> Selfwhere
T: Into<CommonOperationMetadata>,
Sets the value of common_metadata.
§Example
ⓘ
use google_cloud_documentai_v1::model::CommonOperationMetadata;
let x = ReviewDocumentOperationMetadata::new().set_common_metadata(CommonOperationMetadata::default()/* use setters */);Sourcepub fn set_or_clear_common_metadata<T>(self, v: Option<T>) -> Selfwhere
T: Into<CommonOperationMetadata>,
pub fn set_or_clear_common_metadata<T>(self, v: Option<T>) -> Selfwhere
T: Into<CommonOperationMetadata>,
Sets or clears the value of common_metadata.
§Example
ⓘ
use google_cloud_documentai_v1::model::CommonOperationMetadata;
let x = ReviewDocumentOperationMetadata::new().set_or_clear_common_metadata(Some(CommonOperationMetadata::default()/* use setters */));
let x = ReviewDocumentOperationMetadata::new().set_or_clear_common_metadata(None::<CommonOperationMetadata>);Sourcepub fn set_question_id<T: Into<String>>(self, v: T) -> Self
pub fn set_question_id<T: Into<String>>(self, v: T) -> Self
Sets the value of question_id.
§Example
ⓘ
let x = ReviewDocumentOperationMetadata::new().set_question_id("example");Trait Implementations§
Source§impl Clone for ReviewDocumentOperationMetadata
impl Clone for ReviewDocumentOperationMetadata
Source§fn clone(&self) -> ReviewDocumentOperationMetadata
fn clone(&self) -> ReviewDocumentOperationMetadata
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 ReviewDocumentOperationMetadata
impl Default for ReviewDocumentOperationMetadata
Source§fn default() -> ReviewDocumentOperationMetadata
fn default() -> ReviewDocumentOperationMetadata
Returns the “default value” for a type. Read more
Source§impl PartialEq for ReviewDocumentOperationMetadata
impl PartialEq for ReviewDocumentOperationMetadata
Source§fn eq(&self, other: &ReviewDocumentOperationMetadata) -> bool
fn eq(&self, other: &ReviewDocumentOperationMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReviewDocumentOperationMetadata
Auto Trait Implementations§
impl Freeze for ReviewDocumentOperationMetadata
impl RefUnwindSafe for ReviewDocumentOperationMetadata
impl Send for ReviewDocumentOperationMetadata
impl Sync for ReviewDocumentOperationMetadata
impl Unpin for ReviewDocumentOperationMetadata
impl UnwindSafe for ReviewDocumentOperationMetadata
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