pub struct Filter { /* private fields */ }Expand description
High-level filter expression that operates on field names and field=value pairs.
This is the primary type used when constructing filters from user queries.
Use Filter::match_field_name() to match any entry with a specific field,
or Filter::match_field_value_pair() to match a specific field=value combination.
Filters can be combined using Filter::and() and Filter::or() for complex queries.
Implementations§
Source§impl Filter
impl Filter
Sourcepub fn match_field_name(name: FieldName) -> Self
pub fn match_field_name(name: FieldName) -> Self
Create a filter that matches any entry with the given field name.
Sourcepub fn match_field_value_pair(pair: FieldValuePair) -> Self
pub fn match_field_value_pair(pair: FieldValuePair) -> Self
Create a filter that matches a specific field=value pair.
Trait Implementations§
impl Eq for Filter
Auto Trait Implementations§
impl Freeze for Filter
impl RefUnwindSafe for Filter
impl Send for Filter
impl Sync for Filter
impl Unpin for Filter
impl UnsafeUnpin for Filter
impl UnwindSafe for Filter
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