#[non_exhaustive]pub struct CustomFilterListConfiguration {
pub match_operator: CategoryFilterMatchOperator,
pub category_values: Option<Vec<String>>,
pub select_all_options: Option<CategoryFilterSelectAllOptions>,
pub null_option: FilterNullOption,
}Expand description
A list of custom filter values.
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.match_operator: CategoryFilterMatchOperatorThe match operator that is used to determine if a filter should be applied.
category_values: Option<Vec<String>>The list of category values for the filter.
select_all_options: Option<CategoryFilterSelectAllOptions>Select all of the values. Null is not the assigned value of select all.
-
FILTER_ALL_VALUES
null_option: FilterNullOptionThis option determines how null values should be treated when filtering data.
-
ALL_VALUES: Include null values in filtered results. -
NULLS_ONLY: Only include null values in filtered results. -
NON_NULLS_ONLY: Exclude null values from filtered results.
Implementations§
source§impl CustomFilterListConfiguration
impl CustomFilterListConfiguration
sourcepub fn match_operator(&self) -> &CategoryFilterMatchOperator
pub fn match_operator(&self) -> &CategoryFilterMatchOperator
The match operator that is used to determine if a filter should be applied.
sourcepub fn category_values(&self) -> &[String]
pub fn category_values(&self) -> &[String]
The list of category values 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 .category_values.is_none().
sourcepub fn select_all_options(&self) -> Option<&CategoryFilterSelectAllOptions>
pub fn select_all_options(&self) -> Option<&CategoryFilterSelectAllOptions>
Select all of the values. Null is not the assigned value of select all.
-
FILTER_ALL_VALUES
sourcepub fn null_option(&self) -> &FilterNullOption
pub fn null_option(&self) -> &FilterNullOption
This option determines how null values should be treated when filtering data.
-
ALL_VALUES: Include null values in filtered results. -
NULLS_ONLY: Only include null values in filtered results. -
NON_NULLS_ONLY: Exclude null values from filtered results.
source§impl CustomFilterListConfiguration
impl CustomFilterListConfiguration
sourcepub fn builder() -> CustomFilterListConfigurationBuilder
pub fn builder() -> CustomFilterListConfigurationBuilder
Creates a new builder-style object to manufacture CustomFilterListConfiguration.
Trait Implementations§
source§impl Clone for CustomFilterListConfiguration
impl Clone for CustomFilterListConfiguration
source§fn clone(&self) -> CustomFilterListConfiguration
fn clone(&self) -> CustomFilterListConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for CustomFilterListConfiguration
impl PartialEq for CustomFilterListConfiguration
source§fn eq(&self, other: &CustomFilterListConfiguration) -> bool
fn eq(&self, other: &CustomFilterListConfiguration) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CustomFilterListConfiguration
Auto Trait Implementations§
impl Freeze for CustomFilterListConfiguration
impl RefUnwindSafe for CustomFilterListConfiguration
impl Send for CustomFilterListConfiguration
impl Sync for CustomFilterListConfiguration
impl Unpin for CustomFilterListConfiguration
impl UnwindSafe for CustomFilterListConfiguration
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