#[non_exhaustive]pub struct ReviewDocumentRequest {
pub human_review_config: String,
pub enable_schema_validation: bool,
pub priority: Priority,
pub document_schema: Option<DocumentSchema>,
pub source: Option<Source>,
/* private fields */
}Expand description
Request message 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.human_review_config: StringRequired. The resource name of the [HumanReviewConfig][google.cloud.documentai.v1.HumanReviewConfig] that the document will be reviewed with.
enable_schema_validation: boolWhether the validation should be performed on the ad-hoc review request.
priority: PriorityThe priority of the human review task.
document_schema: Option<DocumentSchema>The document schema of the human review task.
source: Option<Source>The document payload.
Implementations§
Source§impl ReviewDocumentRequest
impl ReviewDocumentRequest
pub fn new() -> Self
Sourcepub fn set_human_review_config<T: Into<String>>(self, v: T) -> Self
pub fn set_human_review_config<T: Into<String>>(self, v: T) -> Self
Sets the value of human_review_config.
Sourcepub fn set_enable_schema_validation<T: Into<bool>>(self, v: T) -> Self
pub fn set_enable_schema_validation<T: Into<bool>>(self, v: T) -> Self
Sets the value of enable_schema_validation.
Sourcepub fn set_priority<T: Into<Priority>>(self, v: T) -> Self
pub fn set_priority<T: Into<Priority>>(self, v: T) -> Self
Sets the value of priority.
Sourcepub fn set_document_schema<T>(self, v: T) -> Selfwhere
T: Into<DocumentSchema>,
pub fn set_document_schema<T>(self, v: T) -> Selfwhere
T: Into<DocumentSchema>,
Sets the value of document_schema.
Sourcepub fn set_or_clear_document_schema<T>(self, v: Option<T>) -> Selfwhere
T: Into<DocumentSchema>,
pub fn set_or_clear_document_schema<T>(self, v: Option<T>) -> Selfwhere
T: Into<DocumentSchema>,
Sets or clears the value of document_schema.
Sourcepub fn set_source<T: Into<Option<Source>>>(self, v: T) -> Self
pub fn set_source<T: Into<Option<Source>>>(self, v: T) -> Self
Sets the value of source.
Note that all the setters affecting source are mutually
exclusive.
Trait Implementations§
Source§impl Clone for ReviewDocumentRequest
impl Clone for ReviewDocumentRequest
Source§fn clone(&self) -> ReviewDocumentRequest
fn clone(&self) -> ReviewDocumentRequest
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 ReviewDocumentRequest
impl Debug for ReviewDocumentRequest
Source§impl Default for ReviewDocumentRequest
impl Default for ReviewDocumentRequest
Source§fn default() -> ReviewDocumentRequest
fn default() -> ReviewDocumentRequest
Returns the “default value” for a type. Read more
Source§impl Message for ReviewDocumentRequest
impl Message for ReviewDocumentRequest
Source§impl PartialEq for ReviewDocumentRequest
impl PartialEq for ReviewDocumentRequest
impl StructuralPartialEq for ReviewDocumentRequest
Auto Trait Implementations§
impl Freeze for ReviewDocumentRequest
impl RefUnwindSafe for ReviewDocumentRequest
impl Send for ReviewDocumentRequest
impl Sync for ReviewDocumentRequest
impl Unpin for ReviewDocumentRequest
impl UnwindSafe for ReviewDocumentRequest
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