Struct google_vision1::api::LocalizedObjectAnnotation
source · pub struct LocalizedObjectAnnotation {
pub bounding_poly: Option<BoundingPoly>,
pub language_code: Option<String>,
pub mid: Option<String>,
pub name: Option<String>,
pub score: Option<f32>,
}
Expand description
Set of detected objects with bounding boxes.
This type is not used in any activity, and only used as part of another schema.
Fields§
§bounding_poly: Option<BoundingPoly>
Image region to which this object belongs. This must be populated.
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 LocalizedObjectAnnotation
impl Clone for LocalizedObjectAnnotation
source§fn clone(&self) -> LocalizedObjectAnnotation
fn clone(&self) -> LocalizedObjectAnnotation
Returns a copy 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 LocalizedObjectAnnotation
impl Debug for LocalizedObjectAnnotation
source§impl Default for LocalizedObjectAnnotation
impl Default for LocalizedObjectAnnotation
source§fn default() -> LocalizedObjectAnnotation
fn default() -> LocalizedObjectAnnotation
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for LocalizedObjectAnnotation
impl<'de> Deserialize<'de> for LocalizedObjectAnnotation
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
impl Part for LocalizedObjectAnnotation
Auto Trait Implementations§
impl RefUnwindSafe for LocalizedObjectAnnotation
impl Send for LocalizedObjectAnnotation
impl Sync for LocalizedObjectAnnotation
impl Unpin for LocalizedObjectAnnotation
impl UnwindSafe for LocalizedObjectAnnotation
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