pub struct MetaData {
pub total: Option<u32>,
pub skipped: Option<u32>,
pub per_page: Option<u32>,
pub page: Option<u32>,
pub page_count: Option<u32>,
}
Expand description
This struct represents the mata data of the response.
Fields§
§total: Option<u32>
This is the total number of transactions that were performed by the customer.
skipped: Option<u32>
This is the number of records skipped before the first record in the array returned.
per_page: Option<u32>
This is the maximum number of records that will be returned per request. This can be modified by passing a new value as a perPage query parameter. Default: 50
page: Option<u32>
This is the current page being returned. This is dependent on what page was requested using the page query parameter.
Default: 1
page_count: Option<u32>
This is how many pages in total are available for retrieval considering the maximum records per page specified. For context, if there are 51 records and perPage is left at its default value, pageCount will have a value of 2.
Trait Implementations§
source§impl<'de> Deserialize<'de> for MetaData
impl<'de> Deserialize<'de> for MetaData
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for MetaData
impl Send for MetaData
impl Sync for MetaData
impl Unpin for MetaData
impl UnwindSafe for MetaData
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