pub struct QueryOptions {
pub limit: Option<u32>,
pub skip: Option<u32>,
pub order: Vec<(String, SortDirection)>,
pub keys: Option<Vec<String>>,
}Expand description
Everything about a read that is not a constraint.
Fields§
§limit: Option<u32>§skip: Option<u32>§order: Vec<(String, SortDirection)>§keys: Option<Vec<String>>Projection. None means every field; Some is the explicit list.
Upstream converts excludeKeys into keys before it reaches storage, so an adapter only
ever sees the positive form.
Implementations§
Source§impl QueryOptions
impl QueryOptions
Sourcepub fn parse_order(order: &str) -> Vec<(String, SortDirection)>
pub fn parse_order(order: &str) -> Vec<(String, SortDirection)>
Parse Parse’s order parameter: comma-separated keys, - prefix for descending.
Trait Implementations§
Source§impl Clone for QueryOptions
impl Clone for QueryOptions
Source§fn clone(&self) -> QueryOptions
fn clone(&self) -> QueryOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QueryOptions
impl Debug for QueryOptions
Auto Trait Implementations§
impl Freeze for QueryOptions
impl RefUnwindSafe for QueryOptions
impl Send for QueryOptions
impl Sync for QueryOptions
impl Unpin for QueryOptions
impl UnsafeUnpin for QueryOptions
impl UnwindSafe for QueryOptions
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