pub struct Page<M> {
pub items: Vec<M>,
pub total: i64,
pub page: usize,
pub page_size: usize,
pub total_pages: usize,
}Expand description
A paginated result set holding data and metadata (counts).
Fields§
§items: Vec<M>§total: i64§page: usize§page_size: usize§total_pages: usizeImplementations§
Trait Implementations§
Auto Trait Implementations§
impl<M> Freeze for Page<M>
impl<M> RefUnwindSafe for Page<M>where
M: RefUnwindSafe,
impl<M> Send for Page<M>where
M: Send,
impl<M> Sync for Page<M>where
M: Sync,
impl<M> Unpin for Page<M>where
M: Unpin,
impl<M> UnsafeUnpin for Page<M>
impl<M> UnwindSafe for Page<M>where
M: 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