pub struct QueryParams {
pub page: Option<u32>,
pub per_page: Option<u32>,
pub search: Option<String>,
pub filter: Option<String>,
pub sort: Option<String>,
pub order: Option<String>,
}
Expand description
Query parameters for pagination and filtering
Fields§
§page: Option<u32>
§per_page: Option<u32>
§search: Option<String>
§filter: Option<String>
§sort: Option<String>
§order: Option<String>
Trait Implementations§
Source§impl Debug for QueryParams
impl Debug for QueryParams
Source§impl Default for QueryParams
impl Default for QueryParams
Source§impl<'de> Deserialize<'de> for QueryParams
impl<'de> Deserialize<'de> for QueryParams
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 QueryParams
impl RefUnwindSafe for QueryParams
impl Send for QueryParams
impl Sync for QueryParams
impl Unpin for QueryParams
impl UnwindSafe for QueryParams
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