pub struct QueryParams {
pub page: i64,
pub page_size: i64,
pub sort_by: Option<String>,
pub sort_order: SortOrder,
pub filters: HashMap<String, String>,
}Expand description
Parsed query parameters from an HTTP request.
Fields§
§page: i64Current page number (1-based).
page_size: i64Number of items per page.
sort_by: Option<String>Column to sort by (if any).
sort_order: SortOrderSort direction.
filters: HashMap<String, String>Column-value filter pairs.
Implementations§
Trait Implementations§
Source§impl Clone for QueryParams
impl Clone for QueryParams
Source§fn clone(&self) -> QueryParams
fn clone(&self) -> QueryParams
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 moreAuto Trait Implementations§
impl Freeze for QueryParams
impl RefUnwindSafe for QueryParams
impl Send for QueryParams
impl Sync for QueryParams
impl Unpin for QueryParams
impl UnsafeUnpin 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