[−][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).
- documents process projects (response)
- locations documents process projects (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]
fn clone(&self) -> GoogleCloudDocumentaiV1beta2Document
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for GoogleCloudDocumentaiV1beta2Document
[src]
impl Default for GoogleCloudDocumentaiV1beta2Document
[src]
impl<'de> Deserialize<'de> for GoogleCloudDocumentaiV1beta2Document
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl ResponseResult for GoogleCloudDocumentaiV1beta2Document
[src]
impl Serialize for GoogleCloudDocumentaiV1beta2Document
[src]
Auto Trait Implementations
impl RefUnwindSafe for GoogleCloudDocumentaiV1beta2Document
impl Send for GoogleCloudDocumentaiV1beta2Document
impl Sync for GoogleCloudDocumentaiV1beta2Document
impl Unpin for GoogleCloudDocumentaiV1beta2Document
impl UnwindSafe for GoogleCloudDocumentaiV1beta2Document
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,