pub struct QueryDefaults {
pub default_limit: usize,
pub max_limit: usize,
}Expand description
Page-size defaults a request inherits from its application.
Fields§
§default_limit: usizePage size used when a request does not ask for one.
max_limit: usizeLargest page the server will serve.
Trait Implementations§
Source§impl Clone for QueryDefaults
impl Clone for QueryDefaults
Source§fn clone(&self) -> QueryDefaults
fn clone(&self) -> QueryDefaults
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 moreimpl Copy for QueryDefaults
Source§impl Debug for QueryDefaults
impl Debug for QueryDefaults
Source§impl Default for QueryDefaults
impl Default for QueryDefaults
impl Eq for QueryDefaults
Source§impl PartialEq for QueryDefaults
impl PartialEq for QueryDefaults
impl StructuralPartialEq for QueryDefaults
Auto Trait Implementations§
impl Freeze for QueryDefaults
impl RefUnwindSafe for QueryDefaults
impl Send for QueryDefaults
impl Sync for QueryDefaults
impl Unpin for QueryDefaults
impl UnsafeUnpin for QueryDefaults
impl UnwindSafe for QueryDefaults
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.