pub enum Filter {
And(Vec<Filter>),
Or(Vec<Filter>),
Field {
field: Vec<String>,
op: FilterOp,
value: Value,
},
Name {
op: FilterOp,
value: Value,
},
}Expand description
A query’s filter.
Variants§
And(Vec<Filter>)
Or(Vec<Filter>)
Field
A field, by its segments (a.b is ["a", "b"]), and the value it is compared with
(null for the unary operators; a list for In, NotIn and ArrayContainsAny).
Name
The document’s name, and a reference (Value::Path) or a list of them.
Trait Implementations§
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