pub struct GoogleCloudDocumentaiV1beta2InputConfig {
pub contents: Option<Vec<u8>>,
pub gcs_source: Option<GoogleCloudDocumentaiV1beta2GcsSource>,
pub mime_type: Option<String>,
}
Expand description
The desired input location and metadata.
This type is not used in any activity, and only used as part of another schema.
Fields§
§contents: Option<Vec<u8>>
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.
gcs_source: Option<GoogleCloudDocumentaiV1beta2GcsSource>
The Google Cloud Storage location to read the input from. This must be a single file.
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.
Trait Implementations§
source§impl Clone for GoogleCloudDocumentaiV1beta2InputConfig
impl Clone for GoogleCloudDocumentaiV1beta2InputConfig
source§fn clone(&self) -> GoogleCloudDocumentaiV1beta2InputConfig
fn clone(&self) -> GoogleCloudDocumentaiV1beta2InputConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for GoogleCloudDocumentaiV1beta2InputConfig
impl Default for GoogleCloudDocumentaiV1beta2InputConfig
source§fn default() -> GoogleCloudDocumentaiV1beta2InputConfig
fn default() -> GoogleCloudDocumentaiV1beta2InputConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GoogleCloudDocumentaiV1beta2InputConfig
impl<'de> Deserialize<'de> for GoogleCloudDocumentaiV1beta2InputConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Part for GoogleCloudDocumentaiV1beta2InputConfig
Auto Trait Implementations§
impl RefUnwindSafe for GoogleCloudDocumentaiV1beta2InputConfig
impl Send for GoogleCloudDocumentaiV1beta2InputConfig
impl Sync for GoogleCloudDocumentaiV1beta2InputConfig
impl Unpin for GoogleCloudDocumentaiV1beta2InputConfig
impl UnwindSafe for GoogleCloudDocumentaiV1beta2InputConfig
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
Mutably borrows from an owned value. Read more