pub struct Query {
pub filter: Option<Criteria>,
pub sort: Vec<(String, bool)>,
pub offset: usize,
pub limit: Option<usize>,
pub only: Option<Vec<String>>,
}Expand description
What to read: a filter, an order and a page.
Fields§
§filter: Option<Criteria>Only the records this says true for.
sort: Vec<(String, bool)>Fields to sort by, with true for ascending.
offset: usizeHow many to skip.
limit: Option<usize>The most to return.
only: Option<Vec<String>>Only these fields, with the key, for a list that shows few of many; none means every one.
Implementations§
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 UnsafeUnpin 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