pub struct AutoParams {
pub has_where: bool,
pub has_order_by: bool,
pub has_limit: bool,
pub has_offset: bool,
}Expand description
Auto-wired query parameters.
These are standard parameters automatically added to list queries.
Fields§
§has_where: boolEnable where filtering.
has_order_by: boolEnable orderBy sorting.
has_limit: boolEnable limit pagination.
has_offset: boolEnable offset pagination.
Implementations§
Source§impl AutoParams
impl AutoParams
Sourcepub const fn relay() -> Self
pub const fn relay() -> Self
The shape the Relay spec mandates: filter and sort, but no limit/offset.
A connection is paged by first/after — offering limit and offset beside
them would be a second, unsynchronised way to move the same cursor. The compiler
applies this unconditionally to a relay query, ahead of the list defaults
(QueryConverter::convert_query).
Named rather than written out at each site because the shape is authored twice —
once by the compiler, once by TestQueryBuilder — and a fixture that disagrees
with the compiler about a flag is a test asserting over a parameter the engine
would have dropped (#1290).
Trait Implementations§
Source§impl Clone for AutoParams
impl Clone for AutoParams
Source§impl Debug for AutoParams
impl Debug for AutoParams
Source§impl Default for AutoParams
impl Default for AutoParams
Source§impl<'de> Deserialize<'de> for AutoParams
impl<'de> Deserialize<'de> for AutoParams
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>,
impl Eq for AutoParams
Source§impl PartialEq for AutoParams
impl PartialEq for AutoParams
Source§impl Serialize for AutoParams
impl Serialize for AutoParams
impl StructuralPartialEq for AutoParams
Auto Trait Implementations§
impl Freeze for AutoParams
impl RefUnwindSafe for AutoParams
impl Send for AutoParams
impl Sync for AutoParams
impl Unpin for AutoParams
impl UnsafeUnpin for AutoParams
impl UnwindSafe for AutoParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.