Struct machinebox::tagbox::Tag [] [src]

pub struct Tag {
    pub tag: String,
    pub confidence: Option<f64>,
    pub id: Option<String>,
}

A tag represents a single tag that describes an image. Depending on how you obtained the tag, there might be a confidence score associated with it

Fields

The user-friendly description of the tag

If present, this is a probability score between 0 and 1. This is an Option to make an explicit difference between a 0 probability and a probability that was not supplied as part of the operation.

The ID is a unique identifier for the image supplied during a call to teach

Trait Implementations

impl Debug for Tag
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Tag
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Tag

impl Sync for Tag