Struct gapi_grpc::google::cloud::documentai::v1beta2::ProcessDocumentRequest[][src]

pub struct ProcessDocumentRequest {
    pub parent: String,
    pub input_config: Option<InputConfig>,
    pub output_config: Option<OutputConfig>,
    pub document_type: String,
    pub table_extraction_params: Option<TableExtractionParams>,
    pub form_extraction_params: Option<FormExtractionParams>,
    pub entity_extraction_params: Option<EntityExtractionParams>,
    pub ocr_params: Option<OcrParams>,
    pub automl_params: Option<AutoMlParams>,
}

Request to process one document.

Fields

parent: 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.

input_config: Option<InputConfig>

Required. Information about the input file.

output_config: Option<OutputConfig>

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

document_type: 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.

table_extraction_params: Option<TableExtractionParams>

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

form_extraction_params: Option<FormExtractionParams>

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

entity_extraction_params: Option<EntityExtractionParams>

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

ocr_params: Option<OcrParams>

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

automl_params: Option<AutoMlParams>

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

Trait Implementations

impl Clone for ProcessDocumentRequest[src]

impl Debug for ProcessDocumentRequest[src]

impl Default for ProcessDocumentRequest[src]

impl Message for ProcessDocumentRequest[src]

impl PartialEq<ProcessDocumentRequest> for ProcessDocumentRequest[src]

impl StructuralPartialEq for ProcessDocumentRequest[src]

Auto Trait Implementations

impl RefUnwindSafe for ProcessDocumentRequest

impl Send for ProcessDocumentRequest

impl Sync for ProcessDocumentRequest

impl Unpin for ProcessDocumentRequest

impl UnwindSafe for ProcessDocumentRequest

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> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> IntoRequest<T> for 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<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]