pub struct PaginationQuery {
pub page: u32,
pub per_page: u32,
pub sort_by: Option<String>,
pub sort_direction: Option<String>,
}Fields§
§page: u32§per_page: u32§sort_by: Option<String>§sort_direction: Option<String>Implementations§
Source§impl PaginationQuery
impl PaginationQuery
pub fn into_params(self) -> PaginationParams
pub fn as_params(&self) -> PaginationParams
Trait Implementations§
Source§impl Clone for PaginationQuery
impl Clone for PaginationQuery
Source§fn clone(&self) -> PaginationQuery
fn clone(&self) -> PaginationQuery
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 PaginationQuery
impl Debug for PaginationQuery
Source§impl<'de> Deserialize<'de> for PaginationQuery
impl<'de> Deserialize<'de> for PaginationQuery
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PaginationQuery
impl RefUnwindSafe for PaginationQuery
impl Send for PaginationQuery
impl Sync for PaginationQuery
impl Unpin for PaginationQuery
impl UnsafeUnpin for PaginationQuery
impl UnwindSafe for PaginationQuery
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