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 ==.impl StructuralPartialEq for GeneralLabelsSettings
Auto Trait Implementations§
impl Freeze for GeneralLabelsSettings
impl RefUnwindSafe for GeneralLabelsSettings
impl Send for GeneralLabelsSettings
impl Sync for GeneralLabelsSettings
impl Unpin for GeneralLabelsSettings
impl UnwindSafe for GeneralLabelsSettings
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