Struct google_documentai1_beta2::api::GoogleCloudDocumentaiV1beta2ProcessDocumentRequest[][src]

pub struct GoogleCloudDocumentaiV1beta2ProcessDocumentRequest {
    pub automl_params: Option<GoogleCloudDocumentaiV1beta2AutoMlParams>,
    pub document_type: Option<String>,
    pub entity_extraction_params: Option<GoogleCloudDocumentaiV1beta2EntityExtractionParams>,
    pub form_extraction_params: Option<GoogleCloudDocumentaiV1beta2FormExtractionParams>,
    pub input_config: Option<GoogleCloudDocumentaiV1beta2InputConfig>,
    pub ocr_params: Option<GoogleCloudDocumentaiV1beta2OcrParams>,
    pub output_config: Option<GoogleCloudDocumentaiV1beta2OutputConfig>,
    pub parent: Option<String>,
    pub table_extraction_params: Option<GoogleCloudDocumentaiV1beta2TableExtractionParams>,
}

Request to process one document.

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

automl_params: Option<GoogleCloudDocumentaiV1beta2AutoMlParams>

Controls AutoML model prediction behavior. AutoMlParams cannot be used together with other Params.

document_type: Option<String>

Specifies a known document type for deeper structure detection. Valid values are currently "general" and "invoice". If not provided, "general"\ is used as default. If any other value is given, the request is rejected.

entity_extraction_params: Option<GoogleCloudDocumentaiV1beta2EntityExtractionParams>

Controls entity extraction behavior. If not specified, the system will decide reasonable defaults.

form_extraction_params: Option<GoogleCloudDocumentaiV1beta2FormExtractionParams>

Controls form extraction behavior. If not specified, the system will decide reasonable defaults.

input_config: Option<GoogleCloudDocumentaiV1beta2InputConfig>

Required. Information about the input file.

ocr_params: Option<GoogleCloudDocumentaiV1beta2OcrParams>

Controls OCR behavior. If not specified, the system will decide reasonable defaults.

output_config: Option<GoogleCloudDocumentaiV1beta2OutputConfig>

The desired output location. This field is only needed in BatchProcessDocumentsRequest.

parent: Option<String>

Target project and location to make a call. Format: projects/{project-id}/locations/{location-id}. If no location is specified, a region will be chosen automatically. This field is only populated when used in ProcessDocument method.

table_extraction_params: Option<GoogleCloudDocumentaiV1beta2TableExtractionParams>

Controls table extraction behavior. If not specified, the system will decide reasonable defaults.

Trait Implementations

impl Clone for GoogleCloudDocumentaiV1beta2ProcessDocumentRequest[src]

impl Debug for GoogleCloudDocumentaiV1beta2ProcessDocumentRequest[src]

impl Default for GoogleCloudDocumentaiV1beta2ProcessDocumentRequest[src]

impl<'de> Deserialize<'de> for GoogleCloudDocumentaiV1beta2ProcessDocumentRequest[src]

impl RequestValue for GoogleCloudDocumentaiV1beta2ProcessDocumentRequest[src]

impl Serialize for GoogleCloudDocumentaiV1beta2ProcessDocumentRequest[src]

Auto Trait Implementations

impl RefUnwindSafe for GoogleCloudDocumentaiV1beta2ProcessDocumentRequest[src]

impl Send for GoogleCloudDocumentaiV1beta2ProcessDocumentRequest[src]

impl Sync for GoogleCloudDocumentaiV1beta2ProcessDocumentRequest[src]

impl Unpin for GoogleCloudDocumentaiV1beta2ProcessDocumentRequest[src]

impl UnwindSafe for GoogleCloudDocumentaiV1beta2ProcessDocumentRequest[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.