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§
Source§impl Clone for ObjectAnnotation
impl Clone for ObjectAnnotation
Source§fn clone(&self) -> ObjectAnnotation
fn clone(&self) -> ObjectAnnotation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ObjectAnnotation
impl Debug for ObjectAnnotation
Source§impl Default for ObjectAnnotation
impl Default for ObjectAnnotation
Source§fn default() -> ObjectAnnotation
fn default() -> ObjectAnnotation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ObjectAnnotation
impl<'de> Deserialize<'de> for ObjectAnnotation
Source§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
Source§impl Serialize for ObjectAnnotation
impl Serialize for ObjectAnnotation
impl Part for ObjectAnnotation
Auto Trait Implementations§
impl Freeze for ObjectAnnotation
impl RefUnwindSafe for ObjectAnnotation
impl Send for ObjectAnnotation
impl Sync for ObjectAnnotation
impl Unpin for ObjectAnnotation
impl UnwindSafe for ObjectAnnotation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more