pub struct Query { /* private fields */ }
Expand description
For querying Entries.
A Query contains a single validator and a key, which may be used for querying a set of Entries. Entries that pass the validator can be returned as the query results.
Queries are not meant to be used without associated context; they should be provided alongside information about what Document they are being used to query.
Implementations§
Source§impl Query
impl Query
Sourcepub fn query(&self, entry: &Entry) -> Result<DataChecklist<'_, ()>>
pub fn query(&self, entry: &Entry) -> Result<DataChecklist<'_, ()>>
Execute the query against a given entry and see if it potentially matches.
The DataChecklist
must be completed in order to fully determine if
the entry matches. If the checklist completes successfully, the entry is
a match for the query.
Trait Implementations§
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