pub struct StringFilterBuilder { /* private fields */ }Expand description
A builder-pattern type to construct StringFilter objects.
Implementations§
Source§impl StringFilterBuilder
impl StringFilterBuilder
Sourcepub fn expression(self, expression: impl AsRef<Expression>) -> Self
pub fn expression(self, expression: impl AsRef<Expression>) -> Self
The expression to evaluate on each item to get a string to compare with.
Sourcepub fn ignore_case(self, ignore_case: bool) -> Self
pub fn ignore_case(self, ignore_case: bool) -> Self
If matching is case sensitive.
Sourcepub fn match_mode(self, match_mode: StringFilterMatchMode) -> Self
pub fn match_mode(self, match_mode: StringFilterMatchMode) -> Self
If exact matches are necessary or if substrings are allowed.
Sourcepub fn build(self) -> StringFilter
pub fn build(self) -> StringFilter
Build the StringFilter.
Auto Trait Implementations§
impl Freeze for StringFilterBuilder
impl RefUnwindSafe for StringFilterBuilder
impl !Send for StringFilterBuilder
impl !Sync for StringFilterBuilder
impl Unpin for StringFilterBuilder
impl UnwindSafe for StringFilterBuilder
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
Mutably borrows from an owned value. Read more