pub struct JmapQueryOptions<F: Serialize, S: Serialize> {
pub filter: Option<F>,
pub sort: Option<Vec<S>>,
pub position: Option<u64>,
pub anchor: Option<String>,
pub anchor_offset: Option<i64>,
pub limit: Option<u64>,
pub calculate_total: bool,
}Expand description
Options for JmapQuery::new.
Fields§
§filter: Option<F>The filter conditions the objects must match.
sort: Option<Vec<S>>The sort comparators applied to the results.
position: Option<u64>Zero-based index of the first result to return.
anchor: Option<String>Id of the object to anchor the result window on.
anchor_offset: Option<i64>Offset of the result window relative to the anchor.
limit: Option<u64>Maximum number of results to return.
calculate_total: boolAsk the server to compute total. Off by default.
Trait Implementations§
Source§impl<F: Clone + Serialize, S: Clone + Serialize> Clone for JmapQueryOptions<F, S>
impl<F: Clone + Serialize, S: Clone + Serialize> Clone for JmapQueryOptions<F, S>
Source§fn clone(&self) -> JmapQueryOptions<F, S>
fn clone(&self) -> JmapQueryOptions<F, S>
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 moreAuto Trait Implementations§
impl<F, S> Freeze for JmapQueryOptions<F, S>where
F: Freeze,
impl<F, S> RefUnwindSafe for JmapQueryOptions<F, S>where
F: RefUnwindSafe,
S: RefUnwindSafe,
impl<F, S> Send for JmapQueryOptions<F, S>
impl<F, S> Sync for JmapQueryOptions<F, S>
impl<F, S> Unpin for JmapQueryOptions<F, S>
impl<F, S> UnsafeUnpin for JmapQueryOptions<F, S>where
F: UnsafeUnpin,
impl<F, S> UnwindSafe for JmapQueryOptions<F, S>where
F: UnwindSafe,
S: UnwindSafe,
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