pub struct Pagination { /* private fields */ }
Implementations§
Source§impl Pagination
impl Pagination
pub fn new() -> Self
pub fn items_per_page(self, items_per_page: i32) -> Self
pub fn page_number(self, page_number: i32) -> Self
pub fn to_query_params(&self) -> String
Trait Implementations§
Source§impl Debug for Pagination
impl Debug 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