[][src]Struct google_documentai1_beta2::GoogleCloudDocumentaiV1beta2DocumentLabel

pub struct GoogleCloudDocumentaiV1beta2DocumentLabel {
    pub automl_model: Option<String>,
    pub confidence: Option<f32>,
    pub name: Option<String>,
}

Label attaches schema information and/or other metadata to segments within a Document. Multiple Labels on a single field can denote either different labels, different instances of the same label created at different times, or some combination of both.

This type is not used in any activity, and only used as part of another schema.

Fields

automl_model: Option<String>

Label is generated AutoML model. This field stores the full resource name of the AutoML model.

Format: projects/{project-id}/locations/{location-id}/models/{model-id}

confidence: Option<f32>

Confidence score between 0 and 1 for label assignment.

name: Option<String>

Name of the label.

When the label is generated from AutoML Text Classification model, this field represents the name of the category.

Trait Implementations

impl Clone for GoogleCloudDocumentaiV1beta2DocumentLabel[src]

impl Debug for GoogleCloudDocumentaiV1beta2DocumentLabel[src]

impl Default for GoogleCloudDocumentaiV1beta2DocumentLabel[src]

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

impl Part for GoogleCloudDocumentaiV1beta2DocumentLabel[src]

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