[][src]Struct google_documentai1_beta2::GoogleCloudDocumentaiV1beta2InputConfig

pub struct GoogleCloudDocumentaiV1beta2InputConfig {
    pub mime_type: Option<String>,
    pub gcs_source: Option<GoogleCloudDocumentaiV1beta2GcsSource>,
    pub contents: Option<String>,
}

The desired input location and metadata.

This type is not used in any activity, and only used as part of another schema.

Fields

mime_type: Option<String>

Required. Mimetype of the input. Current supported mimetypes are application/pdf, image/tiff, and image/gif. In addition, application/json type is supported for requests with ProcessDocumentRequest.automl_params field set. The JSON file needs to be in Document format.

gcs_source: Option<GoogleCloudDocumentaiV1beta2GcsSource>

The Google Cloud Storage location to read the input from. This must be a single file.

contents: Option<String>

Content in bytes, represented as a stream of bytes. Note: As with all bytes fields, proto buffer messages use a pure binary representation, whereas JSON representations use base64.

This field only works for synchronous ProcessDocument method.

Trait Implementations

impl Clone for GoogleCloudDocumentaiV1beta2InputConfig[src]

impl Debug for GoogleCloudDocumentaiV1beta2InputConfig[src]

impl Default for GoogleCloudDocumentaiV1beta2InputConfig[src]

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

impl Part for GoogleCloudDocumentaiV1beta2InputConfig[src]

impl Serialize for GoogleCloudDocumentaiV1beta2InputConfig[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