Enum QueryRejection

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: &Self) -> String

Get the response body text used for this rejection.

fn status(self: &Self) -> http::StatusCode

Get the status code used for this rejection.

impl Debug for QueryRejection

fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result

impl Display for QueryRejection

fn fmt(self: &Self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result

impl Error for QueryRejection

fn source(self: &Self) -> Option<&dyn std::error::Error + 'static>

impl Freeze for QueryRejection

impl From for QueryRejection

fn from(inner: FailedToDeserializeQueryString) -> Self

impl IntoResponse for QueryRejection

fn into_response(self: Self) -> $crate::response::Response

impl RefUnwindSafe for QueryRejection

impl Send for QueryRejection

impl Sync for QueryRejection

impl Unpin for QueryRejection

impl UnwindSafe for QueryRejection

impl<T> Any for QueryRejection

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for QueryRejection

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for QueryRejection

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> From for QueryRejection

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Instrument for QueryRejection

impl<T> Same for QueryRejection

impl<T> ToString for QueryRejection

fn to_string(self: &Self) -> String

impl<T> WithSubscriber for QueryRejection

impl<T, U> Into for QueryRejection

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for QueryRejection

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for QueryRejection

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl<V, T> VZip for QueryRejection

fn vzip(self: Self) -> V