pub struct PagePosition {
pub page: u32,
pub per_page: usize,
pub total: Option<u64>,
pub has_next: bool,
}Expand description
Where a page numbered by ?page= sits in its result set.
Fields§
§page: u32The page, from 1.
per_page: usizeThe rows a full page holds.
total: Option<u64>The rows the result set holds; None for a Pagination::Simple page, which counts
nothing.
has_next: boolWhether a page follows this one.
Implementations§
Trait Implementations§
Source§impl Clone for PagePosition
impl Clone for PagePosition
impl Copy for PagePosition
Source§impl Debug for PagePosition
impl Debug for PagePosition
impl Eq for PagePosition
Source§impl PartialEq for PagePosition
impl PartialEq for PagePosition
impl StructuralPartialEq for PagePosition
Auto Trait Implementations§
impl Freeze for PagePosition
impl RefUnwindSafe for PagePosition
impl Send for PagePosition
impl Sync for PagePosition
impl Unpin for PagePosition
impl UnsafeUnpin for PagePosition
impl UnwindSafe for PagePosition
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> CloneAny for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.