Struct MissingJsonContentType
struct MissingJsonContentType
Rejection type for Json used if the Content-Type
header is missing.
Implementations
impl MissingJsonContentType
fn body_text(self: &Self) -> StringGet the response body text used for this rejection.
fn status(self: &Self) -> http::StatusCodeGet the status code used for this rejection.
impl Debug for MissingJsonContentType
fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl Default for MissingJsonContentType
fn default() -> Self
impl Display for MissingJsonContentType
fn fmt(self: &Self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result
impl Error for MissingJsonContentType
impl Freeze for MissingJsonContentType
impl IntoResponse for MissingJsonContentType
fn into_response(self: Self) -> $crate::response::Response
impl RefUnwindSafe for MissingJsonContentType
impl Send for MissingJsonContentType
impl Sync for MissingJsonContentType
impl Unpin for MissingJsonContentType
impl UnwindSafe for MissingJsonContentType
impl<T> Any for MissingJsonContentType
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for MissingJsonContentType
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for MissingJsonContentType
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> From for MissingJsonContentType
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Instrument for MissingJsonContentType
impl<T> Same for MissingJsonContentType
impl<T> ToString for MissingJsonContentType
fn to_string(self: &Self) -> String
impl<T> WithSubscriber for MissingJsonContentType
impl<T, U> Into for MissingJsonContentType
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for MissingJsonContentType
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for MissingJsonContentType
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>
impl<V, T> VZip for MissingJsonContentType
fn vzip(self: Self) -> V