pub struct PaginationMeta {
pub page: u32,
pub per_page: u32,
pub total: u64,
pub total_pages: u32,
pub has_next: bool,
pub has_prev: bool,
}Expand description
Pagination metadata
Fields§
§page: u32Current page (1-indexed)
per_page: u32Items per page
total: u64Total number of items
total_pages: u32Total number of pages
has_next: boolWhether there is a next page
has_prev: boolWhether there is a previous page
Trait Implementations§
Source§impl Clone for PaginationMeta
impl Clone for PaginationMeta
Source§fn clone(&self) -> PaginationMeta
fn clone(&self) -> PaginationMeta
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PaginationMeta
impl Debug for PaginationMeta
Auto Trait Implementations§
impl Freeze for PaginationMeta
impl RefUnwindSafe for PaginationMeta
impl Send for PaginationMeta
impl Sync for PaginationMeta
impl Unpin for PaginationMeta
impl UnwindSafe for PaginationMeta
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