Struct aws_sdk_quicksight::types::TopicFilter
source · #[non_exhaustive]pub struct TopicFilter {
pub filter_description: Option<String>,
pub filter_class: Option<FilterClass>,
pub filter_name: String,
pub filter_synonyms: Option<Vec<String>>,
pub operand_field_name: String,
pub filter_type: Option<NamedFilterType>,
pub category_filter: Option<TopicCategoryFilter>,
pub numeric_equality_filter: Option<TopicNumericEqualityFilter>,
pub numeric_range_filter: Option<TopicNumericRangeFilter>,
pub date_range_filter: Option<TopicDateRangeFilter>,
pub relative_date_filter: Option<TopicRelativeDateFilter>,
}
Expand description
A structure that represents a filter used to select items for a topic.
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.filter_description: Option<String>
A description of the filter used to select items for a topic.
filter_class: Option<FilterClass>
The class of the filter. Valid values for this structure are ENFORCED_VALUE_FILTER
, CONDITIONAL_VALUE_FILTER
, and NAMED_VALUE_FILTER
.
filter_name: String
The name of the filter.
filter_synonyms: Option<Vec<String>>
The other names or aliases for the filter.
operand_field_name: String
The name of the field that the filter operates on.
filter_type: Option<NamedFilterType>
The type of the filter. Valid values for this structure are CATEGORY_FILTER
, NUMERIC_EQUALITY_FILTER
, NUMERIC_RANGE_FILTER
, DATE_RANGE_FILTER
, and RELATIVE_DATE_FILTER
.
category_filter: Option<TopicCategoryFilter>
The category filter that is associated with this filter.
numeric_equality_filter: Option<TopicNumericEqualityFilter>
The numeric equality filter.
numeric_range_filter: Option<TopicNumericRangeFilter>
The numeric range filter.
date_range_filter: Option<TopicDateRangeFilter>
The date range filter.
relative_date_filter: Option<TopicRelativeDateFilter>
The relative date filter.
Implementations§
source§impl TopicFilter
impl TopicFilter
sourcepub fn filter_description(&self) -> Option<&str>
pub fn filter_description(&self) -> Option<&str>
A description of the filter used to select items for a topic.
sourcepub fn filter_class(&self) -> Option<&FilterClass>
pub fn filter_class(&self) -> Option<&FilterClass>
The class of the filter. Valid values for this structure are ENFORCED_VALUE_FILTER
, CONDITIONAL_VALUE_FILTER
, and NAMED_VALUE_FILTER
.
sourcepub fn filter_name(&self) -> &str
pub fn filter_name(&self) -> &str
The name of the filter.
sourcepub fn filter_synonyms(&self) -> &[String]
pub fn filter_synonyms(&self) -> &[String]
The other names or aliases for the filter.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .filter_synonyms.is_none()
.
sourcepub fn operand_field_name(&self) -> &str
pub fn operand_field_name(&self) -> &str
The name of the field that the filter operates on.
sourcepub fn filter_type(&self) -> Option<&NamedFilterType>
pub fn filter_type(&self) -> Option<&NamedFilterType>
The type of the filter. Valid values for this structure are CATEGORY_FILTER
, NUMERIC_EQUALITY_FILTER
, NUMERIC_RANGE_FILTER
, DATE_RANGE_FILTER
, and RELATIVE_DATE_FILTER
.
sourcepub fn category_filter(&self) -> Option<&TopicCategoryFilter>
pub fn category_filter(&self) -> Option<&TopicCategoryFilter>
The category filter that is associated with this filter.
sourcepub fn numeric_equality_filter(&self) -> Option<&TopicNumericEqualityFilter>
pub fn numeric_equality_filter(&self) -> Option<&TopicNumericEqualityFilter>
The numeric equality filter.
sourcepub fn numeric_range_filter(&self) -> Option<&TopicNumericRangeFilter>
pub fn numeric_range_filter(&self) -> Option<&TopicNumericRangeFilter>
The numeric range filter.
sourcepub fn date_range_filter(&self) -> Option<&TopicDateRangeFilter>
pub fn date_range_filter(&self) -> Option<&TopicDateRangeFilter>
The date range filter.
sourcepub fn relative_date_filter(&self) -> Option<&TopicRelativeDateFilter>
pub fn relative_date_filter(&self) -> Option<&TopicRelativeDateFilter>
The relative date filter.
source§impl TopicFilter
impl TopicFilter
sourcepub fn builder() -> TopicFilterBuilder
pub fn builder() -> TopicFilterBuilder
Creates a new builder-style object to manufacture TopicFilter
.
Trait Implementations§
source§impl Clone for TopicFilter
impl Clone for TopicFilter
source§fn clone(&self) -> TopicFilter
fn clone(&self) -> TopicFilter
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TopicFilter
impl Debug for TopicFilter
source§impl PartialEq for TopicFilter
impl PartialEq for TopicFilter
source§fn eq(&self, other: &TopicFilter) -> bool
fn eq(&self, other: &TopicFilter) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TopicFilter
Auto Trait Implementations§
impl Freeze for TopicFilter
impl RefUnwindSafe for TopicFilter
impl Send for TopicFilter
impl Sync for TopicFilter
impl Unpin for TopicFilter
impl UnwindSafe for TopicFilter
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