pub struct PageRequest {
pub page: u64,
pub page_size: u64,
}Fields§
§page: u64§page_size: u64Implementations§
Source§impl PageRequest
impl PageRequest
pub const fn new(page: u64, page_size: u64) -> Self
pub const fn to_pagination(self) -> Pagination
Trait Implementations§
Source§impl Clone for PageRequest
impl Clone for PageRequest
Source§fn clone(&self) -> PageRequest
fn clone(&self) -> PageRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PageRequest
impl Debug for PageRequest
Source§impl PartialEq for PageRequest
impl PartialEq for PageRequest
Source§fn eq(&self, other: &PageRequest) -> bool
fn eq(&self, other: &PageRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PageRequest
impl Eq for PageRequest
impl StructuralPartialEq for PageRequest
Auto Trait Implementations§
impl Freeze for PageRequest
impl RefUnwindSafe for PageRequest
impl Send for PageRequest
impl Sync for PageRequest
impl Unpin for PageRequest
impl UnsafeUnpin for PageRequest
impl UnwindSafe for PageRequest
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