pub struct Page<M> {
pub items: Vec<M>,
pub total: u64,
pub page: u64,
pub per_page: u64,
}Expand description
One page of a QuerySet::paginate result.
Fields§
§items: Vec<M>Rows of this page.
total: u64Rows matching the queryset over all pages.
page: u641-based page number.
per_page: u64Requested page size.
Implementations§
Trait Implementations§
impl<M: PartialEq> StructuralPartialEq for Page<M>
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