pub struct Page<T> {
pub items: Vec<T>,
pub total: u64,
pub offset: u64,
pub limit: Option<u64>,
}Expand description
A page of dataset items and pagination metadata.
Fields§
§items: Vec<T>Items in this page.
total: u64Total number of items in the dataset.
offset: u64Offset used for this page.
limit: Option<u64>Limit used for this page.
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