pub struct Page<T> {
pub items: Vec<T>,
pub current_page: i64,
pub total_pages: Option<i64>,
pub total_count: Option<i64>,
}Expand description
Flattened page of results from a Wave connection type.
Fields§
§items: Vec<T>Items on this page.
current_page: i64Current page number (1-based).
total_pages: Option<i64>Total number of pages.
total_count: Option<i64>Total number of items across all pages.
Implementations§
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