Struct aws_sdk_rekognition::types::builders::LabelBuilder
source · #[non_exhaustive]pub struct LabelBuilder { /* private fields */ }Expand description
A builder for Label.
Implementations§
source§impl LabelBuilder
impl LabelBuilder
sourcepub fn confidence(self, input: f32) -> Self
pub fn confidence(self, input: f32) -> Self
Level of confidence.
sourcepub fn set_confidence(self, input: Option<f32>) -> Self
pub fn set_confidence(self, input: Option<f32>) -> Self
Level of confidence.
sourcepub fn get_confidence(&self) -> &Option<f32>
pub fn get_confidence(&self) -> &Option<f32>
Level of confidence.
sourcepub fn instances(self, input: Instance) -> Self
pub fn instances(self, input: Instance) -> Self
Appends an item to instances.
To override the contents of this collection use set_instances.
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.
sourcepub fn set_instances(self, input: Option<Vec<Instance>>) -> Self
pub fn set_instances(self, input: Option<Vec<Instance>>) -> Self
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.
sourcepub fn get_instances(&self) -> &Option<Vec<Instance>>
pub fn get_instances(&self) -> &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.
sourcepub fn parents(self, input: Parent) -> Self
pub fn parents(self, input: Parent) -> Self
Appends an item to parents.
To override the contents of this collection use set_parents.
The parent labels for a label. The response includes all ancestor labels.
sourcepub fn set_parents(self, input: Option<Vec<Parent>>) -> Self
pub fn set_parents(self, input: Option<Vec<Parent>>) -> Self
The parent labels for a label. The response includes all ancestor labels.
sourcepub fn get_parents(&self) -> &Option<Vec<Parent>>
pub fn get_parents(&self) -> &Option<Vec<Parent>>
The parent labels for a label. The response includes all ancestor labels.
sourcepub fn aliases(self, input: LabelAlias) -> Self
pub fn aliases(self, input: LabelAlias) -> Self
Appends an item to aliases.
To override the contents of this collection use set_aliases.
A list of potential aliases for a given label.
sourcepub fn set_aliases(self, input: Option<Vec<LabelAlias>>) -> Self
pub fn set_aliases(self, input: Option<Vec<LabelAlias>>) -> Self
A list of potential aliases for a given label.
sourcepub fn get_aliases(&self) -> &Option<Vec<LabelAlias>>
pub fn get_aliases(&self) -> &Option<Vec<LabelAlias>>
A list of potential aliases for a given label.
sourcepub fn categories(self, input: LabelCategory) -> Self
pub fn categories(self, input: LabelCategory) -> Self
Appends an item to categories.
To override the contents of this collection use set_categories.
A list of the categories associated with a given label.
sourcepub fn set_categories(self, input: Option<Vec<LabelCategory>>) -> Self
pub fn set_categories(self, input: Option<Vec<LabelCategory>>) -> Self
A list of the categories associated with a given label.
sourcepub fn get_categories(&self) -> &Option<Vec<LabelCategory>>
pub fn get_categories(&self) -> &Option<Vec<LabelCategory>>
A list of the categories associated with a given label.
Trait Implementations§
source§impl Clone for LabelBuilder
impl Clone for LabelBuilder
source§fn clone(&self) -> LabelBuilder
fn clone(&self) -> LabelBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for LabelBuilder
impl Debug for LabelBuilder
source§impl Default for LabelBuilder
impl Default for LabelBuilder
source§fn default() -> LabelBuilder
fn default() -> LabelBuilder
source§impl PartialEq for LabelBuilder
impl PartialEq for LabelBuilder
source§fn eq(&self, other: &LabelBuilder) -> bool
fn eq(&self, other: &LabelBuilder) -> bool
self and other values to be equal, and is used
by ==.