pub struct PaginationList<T> {
pub total: i64,
pub offset: i64,
pub limit: i64,
pub count: i64,
pub desc: bool,
pub items: Vec<T>,
}Expand description
A single page of an offset/limit-paginated list.
Fields§
§total: i64Total number of items available across all pages.
offset: i64Number of items skipped at the start.
limit: i64Maximum number of items the API would return for this request.
count: i64Number of items actually returned in this page.
desc: boolWhether the items are in descending order.
items: Vec<T>The items of this page.
Trait Implementations§
Source§impl<T: Clone> Clone for PaginationList<T>
impl<T: Clone> Clone for PaginationList<T>
Source§fn clone(&self) -> PaginationList<T>
fn clone(&self) -> PaginationList<T>
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 moreSource§impl<T: Debug> Debug for PaginationList<T>
impl<T: Debug> Debug for PaginationList<T>
Source§impl<'de, T> Deserialize<'de> for PaginationList<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for PaginationList<T>where
T: Deserialize<'de>,
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<T> Freeze for PaginationList<T>
impl<T> RefUnwindSafe for PaginationList<T>where
T: RefUnwindSafe,
impl<T> Send for PaginationList<T>where
T: Send,
impl<T> Sync for PaginationList<T>where
T: Sync,
impl<T> Unpin for PaginationList<T>where
T: Unpin,
impl<T> UnsafeUnpin for PaginationList<T>
impl<T> UnwindSafe for PaginationList<T>where
T: 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