[][src]Struct gcp_client::google::cloud::documentai::v1beta1::Document

pub struct Document {
    pub mime_type: String,
    pub text: String,
    pub text_styles: Vec<Style>,
    pub pages: Vec<Page>,
    pub entities: Vec<Entity>,
    pub entity_relations: Vec<EntityRelation>,
    pub shard_info: Option<ShardInfo>,
    pub error: Option<Status>,
    pub source: Option<Source>,
}

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.

Fields

mime_type: 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: String

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

text_styles: Vec<Style>

Styles for the [Document.text][google.cloud.documentai.v1beta1.Document.text].

pages: Vec<Page>

Visual page layout for the [Document][google.cloud.documentai.v1beta1.Document].

entities: Vec<Entity>

A list of entities detected on [Document.text][google.cloud.documentai.v1beta1.Document.text]. For document shards, entities in this list may cross shard boundaries.

entity_relations: Vec<EntityRelation>

Relationship among [Document.entities][google.cloud.documentai.v1beta1.Document.entities].

shard_info: Option<ShardInfo>

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<Status>

Any error that occurred while processing this document.

source: Option<Source>

Original source document from the user.

Trait Implementations

impl Clone for Document[src]

impl Debug for Document[src]

impl Default for Document[src]

impl Message for Document[src]

impl PartialEq<Document> for Document[src]

impl StructuralPartialEq for Document[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> From<T> 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>, 

impl<T> WithSubscriber for T[src]