[][src]Struct paypal_rs::Query

pub struct Query {
    pub count: Option<i32>,
    pub end_time: Option<DateTime<Utc>>,
    pub page: Option<i32>,
    pub page_size: Option<i32>,
    pub total_count_required: Option<bool>,
    pub sort_by: Option<String>,
    pub sort_order: Option<String>,
    pub start_id: Option<String>,
    pub start_index: Option<i32>,
    pub start_time: Option<DateTime<Utc>>,
}

Represents the query used in most GET api requests.

Reference: https://developer.paypal.com/docs/api/reference/api-requests/#query-parameters

Note: You can avoid most fields by the Default impl like so:

let query = Query { count: Some(40), ..Default::default() };

Fields

count: Option<i32>end_time: Option<DateTime<Utc>>page: Option<i32>page_size: Option<i32>total_count_required: Option<bool>sort_by: Option<String>sort_order: Option<String>start_id: Option<String>start_index: Option<i32>start_time: Option<DateTime<Utc>>

Trait Implementations

impl Debug for Query[src]

impl Default for Query[src]

Auto Trait Implementations

impl RefUnwindSafe for Query

impl Send for Query

impl Sync for Query

impl Unpin for Query

impl UnwindSafe for Query

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.