pub enum Clause {
Field(Constraint),
Or(Vec<Query>),
And(Vec<Query>),
Nor(Vec<Query>),
}Expand description
One element of a query. Elements of a Query are conjoined.
Variants§
Field(Constraint)
Or(Vec<Query>)
At least one sub-query matches.
And(Vec<Query>)
Every sub-query matches. Distinct from putting the clauses side by side, because a nested
$and can carry two constraints on the same field without them merging.
Nor(Vec<Query>)
No sub-query matches.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Clause
impl RefUnwindSafe for Clause
impl Send for Clause
impl Sync for Clause
impl Unpin for Clause
impl UnsafeUnpin for Clause
impl UnwindSafe for Clause
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