Struct paypal_rs::QueryBuilder
source · [−]pub struct QueryBuilder { /* private fields */ }
Expand description
Builder for Query
.
Implementations
sourceimpl QueryBuilder
impl QueryBuilder
sourcepub fn count(&mut self, value: Option<i32>) -> &mut Self
pub fn count(&mut self, value: Option<i32>) -> &mut Self
The number of items to list in the response.
sourcepub fn end_time(&mut self, value: Option<DateTime<Utc>>) -> &mut Self
pub fn end_time(&mut self, value: Option<DateTime<Utc>>) -> &mut Self
The end date and time for the range to show in the response.
sourcepub fn page(&mut self, value: Option<i32>) -> &mut Self
pub fn page(&mut self, value: Option<i32>) -> &mut Self
The page number indicating which set of items will be returned in the response. So, the combination of page=1 and page_size=20 returns the first 20 items. The combination of page=2 and page_size=20 returns items 21 through 40.
sourcepub fn page_size(&mut self, value: Option<i32>) -> &mut Self
pub fn page_size(&mut self, value: Option<i32>) -> &mut Self
The number of items to return in the response.
sourcepub fn total_count_required(&mut self, value: Option<bool>) -> &mut Self
pub fn total_count_required(&mut self, value: Option<bool>) -> &mut Self
Indicates whether to show the total count in the response.
sourcepub fn sort_by(&mut self, value: Option<String>) -> &mut Self
pub fn sort_by(&mut self, value: Option<String>) -> &mut Self
Sorts the payments in the response by a specified value, such as the create time or update time.
sourcepub fn sort_order(&mut self, value: Option<String>) -> &mut Self
pub fn sort_order(&mut self, value: Option<String>) -> &mut Self
Sorts the items in the response in ascending or descending order.
sourcepub fn start_id(&mut self, value: Option<String>) -> &mut Self
pub fn start_id(&mut self, value: Option<String>) -> &mut Self
The ID of the starting resource in the response. When results are paged, you can use the next_id value as the start_id to continue with the next set of results.
sourcepub fn start_index(&mut self, value: Option<i32>) -> &mut Self
pub fn start_index(&mut self, value: Option<i32>) -> &mut Self
The start index of the payments to list. Typically, you use the start_index to jump to a specific position in the resource history based on its cart. For example, to start at the second item in a list of results, specify start_index=2.
Trait Implementations
sourceimpl Clone for QueryBuilder
impl Clone for QueryBuilder
sourcefn clone(&self) -> QueryBuilder
fn clone(&self) -> QueryBuilder
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
Auto Trait Implementations
impl RefUnwindSafe for QueryBuilder
impl Send for QueryBuilder
impl Sync for QueryBuilder
impl Unpin for QueryBuilder
impl UnwindSafe for QueryBuilder
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