[][src]Struct google_documentai1_beta2::GoogleCloudDocumentaiV1beta2ProcessDocumentRequest

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

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

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.

output_config: Option<GoogleCloudDocumentaiV1beta2OutputConfig>

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

entity_extraction_params: Option<GoogleCloudDocumentaiV1beta2EntityExtractionParams>

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

table_extraction_params: Option<GoogleCloudDocumentaiV1beta2TableExtractionParams>

Controls table 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.

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.

automl_params: Option<GoogleCloudDocumentaiV1beta2AutoMlParams>

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

form_extraction_params: Option<GoogleCloudDocumentaiV1beta2FormExtractionParams>

Controls form 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

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, 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.

impl<T> Typeable for T where
    T: Any