#[non_exhaustive]pub enum QueryParamReason {
UnknownColumn,
UnknownOperator,
InvalidFieldName,
InvalidValue,
NotANumber,
InvalidCursor,
TooDeep,
UnknownRelation,
NotNumeric,
UnsupportedOperator,
}Expand description
Why a query parameter was refused. The code (as_str) is the stable,
snake_case reason clients branch on.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UnknownColumn
A column the resource does not have (a filter, a sort or an aggregate names it).
UnknownOperator
A field[operator] filter whose operator is not one of the filter grammar’s.
InvalidFieldName
A parameter that names a field with characters no column carries.
InvalidValue
A value the named column cannot take (not a number, not a UUID, not a date, not one of an enum’s values, out of range).
NotANumber
A paging parameter that is not a whole, non-negative number.
InvalidCursor
A paging position (after, before) that this endpoint did not issue for this sort.
TooDeep
A page beyond the deepest an offset walk may reach.
UnknownRelation
An include/with name that is not a relation of the resource.
NotNumeric
A column the reduction cannot be taken over (sum of a text column).
UnsupportedOperator
An operator the named column’s type does not support (contain on a number).
Implementations§
Trait Implementations§
Source§impl Clone for QueryParamReason
impl Clone for QueryParamReason
impl Copy for QueryParamReason
Source§impl Debug for QueryParamReason
impl Debug for QueryParamReason
impl Eq for QueryParamReason
Source§impl PartialEq for QueryParamReason
impl PartialEq for QueryParamReason
impl StructuralPartialEq for QueryParamReason
Auto Trait Implementations§
impl Freeze for QueryParamReason
impl RefUnwindSafe for QueryParamReason
impl Send for QueryParamReason
impl Sync for QueryParamReason
impl Unpin for QueryParamReason
impl UnsafeUnpin for QueryParamReason
impl UnwindSafe for QueryParamReason
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more