pub struct GoogleCloudDocumentaiV1DocumentEntity {
pub confidence: Option<f32>,
pub id: Option<String>,
pub mention_id: Option<String>,
pub mention_text: Option<String>,
pub method: Option<String>,
pub normalized_value: Option<GoogleCloudDocumentaiV1DocumentEntityNormalizedValue>,
pub page_anchor: Option<GoogleCloudDocumentaiV1DocumentPageAnchor>,
pub properties: Option<Vec<GoogleCloudDocumentaiV1DocumentEntity>>,
pub provenance: Option<GoogleCloudDocumentaiV1DocumentProvenance>,
pub redacted: Option<bool>,
pub text_anchor: Option<GoogleCloudDocumentaiV1DocumentTextAnchor>,
pub type_: Option<String>,
}Expand description
An entity that could be a phrase in the text or a property that belongs to the document. It is a known entity type, such as a person, an organization, or location.
This type is not used in any activity, and only used as part of another schema.
Fields§
§confidence: Option<f32>Optional. Confidence of detected Schema entity. Range [0, 1].
id: Option<String>Optional. Canonical id. This will be a unique value in the entity list for this document.
mention_id: Option<String>Optional. Deprecated. Use id field instead.
mention_text: Option<String>Optional. Text value of the entity e.g. 1600 Amphitheatre Pkwy.
method: Option<String>Optional. Specifies how the entity’s value is obtained.
normalized_value: Option<GoogleCloudDocumentaiV1DocumentEntityNormalizedValue>Optional. Normalized entity value. Absent if the extracted value could not be converted or the type (e.g. address) is not supported for certain parsers. This field is also only populated for certain supported document types.
page_anchor: Option<GoogleCloudDocumentaiV1DocumentPageAnchor>Optional. Represents the provenance of this entity wrt. the location on the page where it was found.
properties: Option<Vec<GoogleCloudDocumentaiV1DocumentEntity>>Optional. Entities can be nested to form a hierarchical data structure representing the content in the document.
provenance: Option<GoogleCloudDocumentaiV1DocumentProvenance>Optional. The history of this annotation.
redacted: Option<bool>Optional. Whether the entity will be redacted for de-identification purposes.
text_anchor: Option<GoogleCloudDocumentaiV1DocumentTextAnchor>Optional. Provenance of the entity. Text anchor indexing into the Document.text.
type_: Option<String>Required. Entity type from a schema e.g. Address.
Trait Implementations§
Source§impl Clone for GoogleCloudDocumentaiV1DocumentEntity
impl Clone for GoogleCloudDocumentaiV1DocumentEntity
Source§fn clone(&self) -> GoogleCloudDocumentaiV1DocumentEntity
fn clone(&self) -> GoogleCloudDocumentaiV1DocumentEntity
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more