pub struct Pagination {
pub page: usize,
pub limit: usize,
}
Expand description
Pagination
struct is used to specify the page number and the maximum number of items to be shown per page.
Default values are page = 1
and limit = 10
.
Fields§
§page: usize
§limit: usize
Implementations§
Trait Implementations§
Source§impl Clone for Pagination
impl Clone for Pagination
Source§fn clone(&self) -> Pagination
fn clone(&self) -> Pagination
Returns a copy 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 Pagination
impl Debug for Pagination
Source§impl Default for Pagination
impl Default for Pagination
Source§impl Hash for Pagination
impl Hash for Pagination
Source§impl PartialEq for Pagination
impl PartialEq for Pagination
Source§impl Serialize for Pagination
impl Serialize for Pagination
impl Copy for Pagination
impl Eq for Pagination
impl StructuralPartialEq for Pagination
Auto Trait Implementations§
impl Freeze for Pagination
impl RefUnwindSafe for Pagination
impl Send for Pagination
impl Sync for Pagination
impl Unpin for Pagination
impl UnwindSafe for Pagination
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