pub enum Query {
Browse(Box<Filter>),
All,
And(Vec<Query>),
Or(Vec<Query>),
Not(Box<Query>),
Term(Term),
}Expand description
A parsed query, ready to be run against any catalog.
Variants§
Browse(Box<Filter>)
Versioned catalog browsing filters saved as a dynamic collection.
All
Matches everything, which is what an empty expression means.
And(Vec<Query>)
Every part must match.
Or(Vec<Query>)
At least one part must match.
Not(Box<Query>)
The part must not match.
Term(Term)
One condition on one field.
Trait Implementations§
impl StructuralPartialEq for Query
Auto Trait Implementations§
impl Freeze for Query
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnwindSafe for Query
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