pub struct PaginationMeta {
pub page: usize,
pub limit: usize,
pub total: usize,
pub total_pages: usize,
pub has_next: bool,
pub has_prev: bool,
}Expand description
Pagination metadata
Fields§
§page: usizeCurrent page number (starts at 1)
limit: usizeNumber of items per page
total: usizeTotal number of items (after filters)
total_pages: usizeTotal number of pages
has_next: boolWhether there is a next page
has_prev: boolWhether there is a previous page
Implementations§
Trait Implementations§
Source§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