Struct google_vision1::api::ObjectAnnotation [−][src]
pub struct ObjectAnnotation {
pub language_code: Option<String>,
pub mid: Option<String>,
pub name: Option<String>,
pub score: Option<f32>,
}
Expand description
Prediction for what the object in the bounding box is.
This type is not used in any activity, and only used as part of another schema.
Fields
language_code: Option<String>
The BCP-47 language code, such as “en-US” or “sr-Latn”. For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
mid: Option<String>
Object ID that should align with EntityAnnotation mid.
name: Option<String>
Object name, expressed in its language_code
language.
score: Option<f32>
Score of the result. Range [0, 1].
Trait Implementations
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ObjectAnnotation
impl Send for ObjectAnnotation
impl Sync for ObjectAnnotation
impl Unpin for ObjectAnnotation
impl UnwindSafe for ObjectAnnotation
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more