#[non_exhaustive]pub struct FilterListConfigurationBuilder { /* private fields */ }
Expand description
A builder for FilterListConfiguration
.
Implementations§
source§impl FilterListConfigurationBuilder
impl FilterListConfigurationBuilder
sourcepub fn match_operator(self, input: CategoryFilterMatchOperator) -> Self
pub fn match_operator(self, input: CategoryFilterMatchOperator) -> Self
The match operator that is used to determine if a filter should be applied.
This field is required.sourcepub fn set_match_operator(
self,
input: Option<CategoryFilterMatchOperator>
) -> Self
pub fn set_match_operator( self, input: Option<CategoryFilterMatchOperator> ) -> Self
The match operator that is used to determine if a filter should be applied.
sourcepub fn get_match_operator(&self) -> &Option<CategoryFilterMatchOperator>
pub fn get_match_operator(&self) -> &Option<CategoryFilterMatchOperator>
The match operator that is used to determine if a filter should be applied.
sourcepub fn category_values(self, input: impl Into<String>) -> Self
pub fn category_values(self, input: impl Into<String>) -> Self
Appends an item to category_values
.
To override the contents of this collection use set_category_values
.
The list of category values for the filter.
sourcepub fn set_category_values(self, input: Option<Vec<String>>) -> Self
pub fn set_category_values(self, input: Option<Vec<String>>) -> Self
The list of category values for the filter.
sourcepub fn get_category_values(&self) -> &Option<Vec<String>>
pub fn get_category_values(&self) -> &Option<Vec<String>>
The list of category values for the filter.
sourcepub fn select_all_options(self, input: CategoryFilterSelectAllOptions) -> Self
pub fn select_all_options(self, input: CategoryFilterSelectAllOptions) -> Self
Select all of the values. Null is not the assigned value of select all.
-
FILTER_ALL_VALUES
sourcepub fn set_select_all_options(
self,
input: Option<CategoryFilterSelectAllOptions>
) -> Self
pub fn set_select_all_options( self, input: Option<CategoryFilterSelectAllOptions> ) -> Self
Select all of the values. Null is not the assigned value of select all.
-
FILTER_ALL_VALUES
sourcepub fn get_select_all_options(&self) -> &Option<CategoryFilterSelectAllOptions>
pub fn get_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, input: FilterNullOption) -> Self
pub fn null_option(self, input: FilterNullOption) -> Self
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.
sourcepub fn set_null_option(self, input: Option<FilterNullOption>) -> Self
pub fn set_null_option(self, input: Option<FilterNullOption>) -> Self
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.
sourcepub fn get_null_option(&self) -> &Option<FilterNullOption>
pub fn get_null_option(&self) -> &Option<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.
sourcepub fn build(self) -> Result<FilterListConfiguration, BuildError>
pub fn build(self) -> Result<FilterListConfiguration, BuildError>
Consumes the builder and constructs a FilterListConfiguration
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for FilterListConfigurationBuilder
impl Clone for FilterListConfigurationBuilder
source§fn clone(&self) -> FilterListConfigurationBuilder
fn clone(&self) -> FilterListConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for FilterListConfigurationBuilder
impl Default for FilterListConfigurationBuilder
source§fn default() -> FilterListConfigurationBuilder
fn default() -> FilterListConfigurationBuilder
source§impl PartialEq for FilterListConfigurationBuilder
impl PartialEq for FilterListConfigurationBuilder
source§fn eq(&self, other: &FilterListConfigurationBuilder) -> bool
fn eq(&self, other: &FilterListConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FilterListConfigurationBuilder
Auto Trait Implementations§
impl Freeze for FilterListConfigurationBuilder
impl RefUnwindSafe for FilterListConfigurationBuilder
impl Send for FilterListConfigurationBuilder
impl Sync for FilterListConfigurationBuilder
impl Unpin for FilterListConfigurationBuilder
impl UnwindSafe for FilterListConfigurationBuilder
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