pub struct ListData<T> {
pub total: u64,
pub offset: u64,
pub limit: u64,
pub count: u64,
pub desc: bool,
pub items: Vec<T>,
}Expand description
Pagination metadata plus the actual collection items.
Fields§
§total: u64Total number of items available across all pages.
offset: u64How many items were skipped at the start of the list.
limit: u64Maximum number of items the server agreed to return in this page.
count: u64Actual number of items in this response.
desc: booltrue when the list is sorted newest-first.
items: Vec<T>The page of results.
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for ListData<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for ListData<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 ListData<T>
impl<T> RefUnwindSafe for ListData<T>where
Vec<T>: RefUnwindSafe,
impl<T> Send for ListData<T>
impl<T> Sync for ListData<T>
impl<T> Unpin for ListData<T>
impl<T> UnsafeUnpin for ListData<T>where
Vec<T>: UnsafeUnpin,
impl<T> UnwindSafe for ListData<T>where
Vec<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