pub struct GoogleCloudDocumentaiV1ProcessRequest {
pub field_mask: Option<FieldMask>,
pub gcs_document: Option<GoogleCloudDocumentaiV1GcsDocument>,
pub inline_document: Option<GoogleCloudDocumentaiV1Document>,
pub labels: Option<HashMap<String, String>>,
pub process_options: Option<GoogleCloudDocumentaiV1ProcessOptions>,
pub raw_document: Option<GoogleCloudDocumentaiV1RawDocument>,
pub skip_human_review: Option<bool>,
}Expand description
Request message for the ProcessDocument method.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
Fields§
§field_mask: Option<FieldMask>Specifies which fields to include in the ProcessResponse.document output. Only supports top-level document and pages field, so it must be in the form of {document_field_name} or pages.{page_field_name}.
gcs_document: Option<GoogleCloudDocumentaiV1GcsDocument>A raw document on Google Cloud Storage.
inline_document: Option<GoogleCloudDocumentaiV1Document>An inline document proto.
labels: Option<HashMap<String, String>>Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
process_options: Option<GoogleCloudDocumentaiV1ProcessOptions>Inference-time options for the process API
raw_document: Option<GoogleCloudDocumentaiV1RawDocument>A raw document content (bytes).
skip_human_review: Option<bool>Whether human review should be skipped for this request. Default to false.
Trait Implementations§
Source§impl Clone for GoogleCloudDocumentaiV1ProcessRequest
impl Clone for GoogleCloudDocumentaiV1ProcessRequest
Source§fn clone(&self) -> GoogleCloudDocumentaiV1ProcessRequest
fn clone(&self) -> GoogleCloudDocumentaiV1ProcessRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for GoogleCloudDocumentaiV1ProcessRequest
impl Default for GoogleCloudDocumentaiV1ProcessRequest
Source§fn default() -> GoogleCloudDocumentaiV1ProcessRequest
fn default() -> GoogleCloudDocumentaiV1ProcessRequest
Source§impl<'de> Deserialize<'de> for GoogleCloudDocumentaiV1ProcessRequest
impl<'de> Deserialize<'de> for GoogleCloudDocumentaiV1ProcessRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl RequestValue for GoogleCloudDocumentaiV1ProcessRequest
Auto Trait Implementations§
impl Freeze for GoogleCloudDocumentaiV1ProcessRequest
impl RefUnwindSafe for GoogleCloudDocumentaiV1ProcessRequest
impl Send for GoogleCloudDocumentaiV1ProcessRequest
impl Sync for GoogleCloudDocumentaiV1ProcessRequest
impl Unpin for GoogleCloudDocumentaiV1ProcessRequest
impl UnwindSafe for GoogleCloudDocumentaiV1ProcessRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more