Struct aws_sdk_rekognition::types::Label
source · #[non_exhaustive]pub struct Label {
pub name: Option<String>,
pub confidence: Option<f32>,
pub instances: Option<Vec<Instance>>,
pub parents: Option<Vec<Parent>>,
pub aliases: Option<Vec<LabelAlias>>,
pub categories: Option<Vec<LabelCategory>>,
}Expand description
Structure containing details about the detected label, including the name, detected instances, parent labels, and level of confidence.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: Option<String>The name (label) of the object or scene.
confidence: Option<f32>Level of confidence.
instances: Option<Vec<Instance>>If Label represents an object, Instances contains the bounding boxes for each instance of the detected object. Bounding boxes are returned for common object labels such as people, cars, furniture, apparel or pets.
parents: Option<Vec<Parent>>The parent labels for a label. The response includes all ancestor labels.
aliases: Option<Vec<LabelAlias>>A list of potential aliases for a given label.
categories: Option<Vec<LabelCategory>>A list of the categories associated with a given label.
Implementations§
source§impl Label
impl Label
sourcepub fn confidence(&self) -> Option<f32>
pub fn confidence(&self) -> Option<f32>
Level of confidence.
sourcepub fn instances(&self) -> &[Instance]
pub fn instances(&self) -> &[Instance]
If Label represents an object, Instances contains the bounding boxes for each instance of the detected object. Bounding boxes are returned for common object labels such as people, cars, furniture, apparel or pets.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .instances.is_none().
sourcepub fn parents(&self) -> &[Parent]
pub fn parents(&self) -> &[Parent]
The parent labels for a label. The response includes all ancestor labels.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .parents.is_none().
sourcepub fn aliases(&self) -> &[LabelAlias]
pub fn aliases(&self) -> &[LabelAlias]
A list of potential aliases for a given label.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .aliases.is_none().
sourcepub fn categories(&self) -> &[LabelCategory]
pub fn categories(&self) -> &[LabelCategory]
A list of the categories associated with a given label.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .categories.is_none().
Trait Implementations§
source§impl PartialEq for Label
impl PartialEq for Label
impl StructuralPartialEq for Label
Auto Trait Implementations§
impl Freeze for Label
impl RefUnwindSafe for Label
impl Send for Label
impl Sync for Label
impl Unpin for Label
impl UnwindSafe for Label
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more