[][src]Struct google_documentai1_beta2::GoogleCloudDocumentaiV1beta2Document

Document represents the canonical document resource in Document Understanding AI. It is an interchange format that provides insights into documents and allows for collaboration between users and Document Understanding AI to iterate and optimize for quality.

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

mime_type: Option<String>

An IANA published MIME type (also referred to as media type). For more information, see https://www.iana.org/assignments/media-types/media-types.xhtml.

text_styles: Option<Vec<GoogleCloudDocumentaiV1beta2DocumentStyle>>

Styles for the Document.text.

text: Option<String>

UTF-8 encoded text in reading order from the document.

labels: Option<Vec<GoogleCloudDocumentaiV1beta2DocumentLabel>>

Labels for this document.

translations: Option<Vec<GoogleCloudDocumentaiV1beta2DocumentTranslation>>

A list of translations on Document.text. For document shards, translations in this list may cross shard boundaries.

uri: Option<String>

Currently supports Google Cloud Storage URI of the form gs://bucket_name/object_name. Object versioning is not supported. See Google Cloud Storage Request URIs for more info.

entity_relations: Option<Vec<GoogleCloudDocumentaiV1beta2DocumentEntityRelation>>

Relationship among Document.entities.

content: Option<String>

Inline document content, represented as a stream of bytes. Note: As with all bytes fields, protobuffers use a pure binary representation, whereas JSON representations use base64.

entities: Option<Vec<GoogleCloudDocumentaiV1beta2DocumentEntity>>

A list of entities detected on Document.text. For document shards, entities in this list may cross shard boundaries.

shard_info: Option<GoogleCloudDocumentaiV1beta2DocumentShardInfo>

Information about the sharding if this document is sharded part of a larger document. If the document is not sharded, this message is not specified.

error: Option<GoogleRpcStatus>

Any error that occurred while processing this document.

pages: Option<Vec<GoogleCloudDocumentaiV1beta2DocumentPage>>

Visual page layout for the Document.

Trait Implementations

impl Clone for GoogleCloudDocumentaiV1beta2Document[src]

impl Debug for GoogleCloudDocumentaiV1beta2Document[src]

impl Default for GoogleCloudDocumentaiV1beta2Document[src]

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

impl ResponseResult for GoogleCloudDocumentaiV1beta2Document[src]

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