pub struct QueryConfig {
pub default_page_size: i64,
pub max_page_size: i64,
pub allowed_sorts: Vec<String>,
pub allowed_filters: Vec<String>,
}Expand description
Configuration for query parameter parsing.
Fields§
§default_page_size: i64Default page size when not specified (default: 20).
max_page_size: i64Maximum allowed page size (default: 100).
allowed_sorts: Vec<String>Allowed sort columns. Empty means every syntactically safe identifier is allowed.
allowed_filters: Vec<String>Allowed filter columns. Empty means every syntactically safe identifier is allowed.
Trait Implementations§
Source§impl Clone for QueryConfig
impl Clone for QueryConfig
Source§impl Debug for QueryConfig
impl Debug for QueryConfig
Auto Trait Implementations§
impl Freeze for QueryConfig
impl RefUnwindSafe for QueryConfig
impl Send for QueryConfig
impl Sync for QueryConfig
impl Unpin for QueryConfig
impl UnsafeUnpin for QueryConfig
impl UnwindSafe for QueryConfig
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