Enum RawFormRejection
#[non_exhaustive]
pub enum RawFormRejection
Rejection used for RawForm.
Contains one variant for each way the RawForm extractor
can fail.
Variants
-
InvalidFormContentType(InvalidFormContentType) -
BytesRejection(BytesRejection)
Implementations
impl RawFormRejection
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 RawFormRejection
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for RawFormRejection
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Error for RawFormRejection
fn source(&self) -> Option<&dyn Error + 'static>
impl From<BytesRejection> for RawFormRejection
fn from(inner: BytesRejection) -> Self
impl From<InvalidFormContentType> for RawFormRejection
fn from(inner: InvalidFormContentType) -> Self
impl IntoResponse for RawFormRejection
fn into_response(self) -> Response
Auto Trait Implementations
impl !RefUnwindSafe for RawFormRejection
impl !UnwindSafe for RawFormRejection
impl Freeze for RawFormRejection
impl Send for RawFormRejection
impl Sync for RawFormRejection
impl Unpin for RawFormRejection
impl UnsafeUnpin for RawFormRejection
Blanket Implementations
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for RawFormRejection
where
ST: ?Sized,
DT: ?Sized,
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for RawFormRejection
where
ST: ?Sized,
DT: ?Sized,
impl<T> Any for RawFormRejection
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for RawFormRejection
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for RawFormRejection
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for RawFormRejection
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Instrument for RawFormRejection
impl<T> Read<Exclusive, BecauseExclusive> for RawFormRejection
where
T: ?Sized,
impl<T> Same for RawFormRejection
type Output = T;
impl<T> ToString for RawFormRejection
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T> WithSubscriber for RawFormRejection
impl<T, U> Into<U> for RawFormRejection
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 RawFormRejection
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for RawFormRejection
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 RawFormRejection
where
V: MultiLane<T>,
fn vzip(self) -> V