pub struct PageQueryParams {
pub page: u16,
pub page_size: u8,
}Expand description
The query params structure describes pagination by page number and page size.
Fields§
§page: u16§page_size: u8Implementations§
Source§impl PageQueryParams
impl PageQueryParams
pub fn create(page: u16, page_size: u8) -> PageQueryParams
Sourcepub fn to_query_string(&self) -> String
pub fn to_query_string(&self) -> String
Serializes a PageQueryParams into a query string.
Trait Implementations§
Source§impl Clone for PageQueryParams
impl Clone for PageQueryParams
Source§fn clone(&self) -> PageQueryParams
fn clone(&self) -> PageQueryParams
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 PageQueryParams
impl Debug for PageQueryParams
Source§impl Default for PageQueryParams
impl Default for PageQueryParams
Source§impl PartialEq for PageQueryParams
impl PartialEq for PageQueryParams
Source§impl Serialize for PageQueryParams
impl Serialize for PageQueryParams
impl Eq for PageQueryParams
impl StructuralPartialEq for PageQueryParams
Auto Trait Implementations§
impl Freeze for PageQueryParams
impl RefUnwindSafe for PageQueryParams
impl Send for PageQueryParams
impl Sync for PageQueryParams
impl Unpin for PageQueryParams
impl UnwindSafe for PageQueryParams
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
Source§impl<T> Clear for Twhere
T: InitializableFromZeroed + ?Sized,
impl<T> Clear for Twhere
T: InitializableFromZeroed + ?Sized,
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> InitializableFromZeroed for Twhere
T: Default,
impl<T> InitializableFromZeroed for Twhere
T: Default,
Source§unsafe fn initialize(place: *mut T)
unsafe fn initialize(place: *mut T)
Called to initialize a place to a valid value, after it is set
to all-bits-zero. Read more