Struct aws_sdk_rekognition::types::GeneralLabelsSettings
source · #[non_exhaustive]pub struct GeneralLabelsSettings {
pub label_inclusion_filters: Option<Vec<String>>,
pub label_exclusion_filters: Option<Vec<String>>,
pub label_category_inclusion_filters: Option<Vec<String>>,
pub label_category_exclusion_filters: Option<Vec<String>>,
}Expand description
Contains filters for the object labels returned by DetectLabels. Filters can be inclusive, exclusive, or a combination of both and can be applied to individual labels or entire label categories. To see a list of label categories, see Detecting Labels.
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.label_inclusion_filters: Option<Vec<String>>The labels that should be included in the return from DetectLabels.
label_exclusion_filters: Option<Vec<String>>The labels that should be excluded from the return from DetectLabels.
label_category_inclusion_filters: Option<Vec<String>>The label categories that should be included in the return from DetectLabels.
label_category_exclusion_filters: Option<Vec<String>>The label categories that should be excluded from the return from DetectLabels.
Implementations§
source§impl GeneralLabelsSettings
impl GeneralLabelsSettings
sourcepub fn label_inclusion_filters(&self) -> &[String]
pub fn label_inclusion_filters(&self) -> &[String]
The labels that should be included in the return from DetectLabels.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .label_inclusion_filters.is_none().
sourcepub fn label_exclusion_filters(&self) -> &[String]
pub fn label_exclusion_filters(&self) -> &[String]
The labels that should be excluded from the return from DetectLabels.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .label_exclusion_filters.is_none().
sourcepub fn label_category_inclusion_filters(&self) -> &[String]
pub fn label_category_inclusion_filters(&self) -> &[String]
The label categories that should be included in the return from DetectLabels.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .label_category_inclusion_filters.is_none().
sourcepub fn label_category_exclusion_filters(&self) -> &[String]
pub fn label_category_exclusion_filters(&self) -> &[String]
The label categories that should be excluded from the return from DetectLabels.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .label_category_exclusion_filters.is_none().
source§impl GeneralLabelsSettings
impl GeneralLabelsSettings
sourcepub fn builder() -> GeneralLabelsSettingsBuilder
pub fn builder() -> GeneralLabelsSettingsBuilder
Creates a new builder-style object to manufacture GeneralLabelsSettings.
Trait Implementations§
source§impl Clone for GeneralLabelsSettings
impl Clone for GeneralLabelsSettings
source§fn clone(&self) -> GeneralLabelsSettings
fn clone(&self) -> GeneralLabelsSettings
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for GeneralLabelsSettings
impl Debug for GeneralLabelsSettings
source§impl PartialEq for GeneralLabelsSettings
impl PartialEq for GeneralLabelsSettings
source§fn eq(&self, other: &GeneralLabelsSettings) -> bool
fn eq(&self, other: &GeneralLabelsSettings) -> bool
self and other values to be equal, and is used
by ==.