pub struct Page<T> {
pub items: Vec<T>,
pub page: i32,
pub pages: i32,
pub total: Option<i32>,
}Expand description
One fetched page of a v2 list endpoint.
Fields§
§items: Vec<T>The items on this page.
page: i32The 1-based page this response is (the API’s pagination.current).
pages: i32Total number of pages.
total: Option<i32>Total items across all pages, when the endpoint reports it.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Page<T>
impl<T> RefUnwindSafe for Page<T>where
T: RefUnwindSafe,
impl<T> Send for Page<T>where
T: Send,
impl<T> Sync for Page<T>where
T: Sync,
impl<T> Unpin for Page<T>where
T: Unpin,
impl<T> UnsafeUnpin for Page<T>
impl<T> UnwindSafe for Page<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