Struct jmap_client::core::query::QueryRequest
source · [−]pub struct QueryRequest<O: QueryObject> { /* private fields */ }Implementations
sourceimpl<O: QueryObject> QueryRequest<O>
impl<O: QueryObject> QueryRequest<O>
pub fn new(params: RequestParams) -> Self
pub fn account_id(&mut self, account_id: impl Into<String>) -> &mut Self
pub fn filter(&mut self, filter: impl Into<Filter<O::Filter>>) -> &mut Self
pub fn sort(
&mut self,
sort: impl IntoIterator<Item = Comparator<O::Sort>>
) -> &mut Self
pub fn position(&mut self, position: i32) -> &mut Self
pub fn anchor(&mut self, anchor: impl Into<String>) -> &mut Self
pub fn anchor_offset(&mut self, anchor_offset: i32) -> &mut Self
pub fn limit(&mut self, limit: usize) -> &mut Self
pub fn calculate_total(&mut self, calculate_total: bool) -> &mut Self
pub fn arguments(&mut self) -> &mut O::QueryArguments
pub fn result_reference(&self) -> ResultReference
Trait Implementations
sourceimpl<O: Clone + QueryObject> Clone for QueryRequest<O>where
O::Filter: Clone,
O::Sort: Clone,
O::QueryArguments: Clone,
impl<O: Clone + QueryObject> Clone for QueryRequest<O>where
O::Filter: Clone,
O::Sort: Clone,
O::QueryArguments: Clone,
sourcefn clone(&self) -> QueryRequest<O>
fn clone(&self) -> QueryRequest<O>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<O: Debug + QueryObject> Debug for QueryRequest<O>where
O::Filter: Debug,
O::Sort: Debug,
O::QueryArguments: Debug,
impl<O: Debug + QueryObject> Debug for QueryRequest<O>where
O::Filter: Debug,
O::Sort: Debug,
O::QueryArguments: Debug,
sourceimpl<O: QueryObject> Serialize for QueryRequest<O>where
O::QueryArguments: Serialize,
impl<O: QueryObject> Serialize for QueryRequest<O>where
O::QueryArguments: Serialize,
Auto Trait Implementations
impl<O> RefUnwindSafe for QueryRequest<O>where
<O as QueryObject>::Filter: RefUnwindSafe,
<O as QueryObject>::QueryArguments: RefUnwindSafe,
<O as QueryObject>::Sort: RefUnwindSafe,
impl<O> Send for QueryRequest<O>where
<O as QueryObject>::Filter: Send,
<O as QueryObject>::QueryArguments: Send,
<O as QueryObject>::Sort: Send,
impl<O> Sync for QueryRequest<O>where
<O as QueryObject>::Filter: Sync,
<O as QueryObject>::QueryArguments: Sync,
<O as QueryObject>::Sort: Sync,
impl<O> Unpin for QueryRequest<O>where
<O as QueryObject>::Filter: Unpin,
<O as QueryObject>::QueryArguments: Unpin,
<O as QueryObject>::Sort: Unpin,
impl<O> UnwindSafe for QueryRequest<O>where
<O as QueryObject>::Filter: UnwindSafe,
<O as QueryObject>::QueryArguments: UnwindSafe,
<O as QueryObject>::Sort: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more