pub struct Query {
pub filters: Vec<Filter>,
pub sort: Option<(String, SortOrder)>,
pub limit: Option<usize>,
pub offset: Option<usize>,
pub projection: Option<Vec<String>>,
}Expand description
Represents a query for filtering documents in a collection.
A query consists of filters, sorting, limits, offsets, and field projections. Queries are executed in-memory for basic filtering operations.
Fields§
§filters: Vec<Filter>List of filters to apply
sort: Option<(String, SortOrder)>Optional sorting (field, order)
limit: Option<usize>Maximum number of results
offset: Option<usize>Number of results to skip
projection: Option<Vec<String>>Fields to include in results (projection)
Trait Implementations§
impl Eq for Query
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