Enum QueryRejection
#[non_exhaustive]
pub enum QueryRejection
Rejection used for Query.
Contains one variant for each way the Query extractor
can fail.
Variants
-
FailedToDeserializeQueryString(FailedToDeserializeQueryString)
Implementations
impl QueryRejection
fn body_text(&self) -> StringGet the response body text used for this rejection.
fn status(&self) -> StatusCodeGet the status code used for this rejection.
Trait Implementations
impl Debug for QueryRejection
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for QueryRejection
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Error for QueryRejection
fn source(&self) -> Option<&dyn Error + 'static>
impl From<FailedToDeserializeQueryString> for QueryRejection
fn from(inner: FailedToDeserializeQueryString) -> Self
impl IntoResponse for QueryRejection
fn into_response(self) -> Response
Auto Trait Implementations
impl !RefUnwindSafe for QueryRejection
impl !UnwindSafe for QueryRejection
impl Freeze for QueryRejection
impl Send for QueryRejection
impl Sync for QueryRejection
impl Unpin for QueryRejection
impl UnsafeUnpin for QueryRejection
Blanket Implementations
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for QueryRejection
where
ST: ?Sized,
DT: ?Sized,
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for QueryRejection
where
ST: ?Sized,
DT: ?Sized,
impl<T> Any for QueryRejection
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for QueryRejection
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for QueryRejection
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for QueryRejection
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Instrument for QueryRejection
impl<T> Read<Exclusive, BecauseExclusive> for QueryRejection
where
T: ?Sized,
impl<T> Same for QueryRejection
type Output = T;
impl<T> ToString for QueryRejection
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T> WithSubscriber for QueryRejection
impl<T, U> Into<U> for QueryRejection
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for QueryRejection
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for QueryRejection
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<V, T> VZip<V> for QueryRejection
where
V: MultiLane<T>,
fn vzip(self) -> V