pub enum Filter {
MatchAll,
Exists(FieldPath),
Compare {
path: FieldPath,
operator: CompareOperator,
value: Value,
},
Prefix {
path: FieldPath,
prefix: Value,
},
Contains {
path: FieldPath,
needle: Value,
},
All(Vec<Self>),
Any(Vec<Self>),
Not(Box<Self>),
}Expand description
Deterministic filter expression.
Variants§
MatchAll
Matches every record.
Exists(FieldPath)
Tests whether a path resolves, including to explicit null.
Compare
Compares one resolved value against a literal.
Fields
§
operator: CompareOperatorComparison operator.
Prefix
Tests a UTF-8 or binary prefix of the same type.
Contains
Tests array membership, UTF-8 substring, or byte subsequence.
All(Vec<Self>)
Every child must match; an empty list is true.
Any(Vec<Self>)
At least one child must match; an empty list is false.
Not(Box<Self>)
Ordinary two-valued negation.
Trait Implementations§
impl Eq for Filter
impl StructuralPartialEq 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