Struct JsonDataError
struct JsonDataError(_)
Rejection type for Json.
This rejection is used if the request body is syntactically valid JSON but couldn't be deserialized into the target type.
Implementations
impl JsonDataError
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 JsonDataError
fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl Display for JsonDataError
fn fmt(self: &Self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result
impl Error for JsonDataError
fn source(self: &Self) -> Option<&dyn std::error::Error + 'static>
impl Freeze for JsonDataError
impl IntoResponse for JsonDataError
fn into_response(self: Self) -> $crate::response::Response
impl RefUnwindSafe for JsonDataError
impl Send for JsonDataError
impl Sync for JsonDataError
impl Unpin for JsonDataError
impl UnwindSafe for JsonDataError
impl<T> Any for JsonDataError
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for JsonDataError
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for JsonDataError
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> From for JsonDataError
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Instrument for JsonDataError
impl<T> Same for JsonDataError
impl<T> ToString for JsonDataError
fn to_string(self: &Self) -> String
impl<T> WithSubscriber for JsonDataError
impl<T, U> Into for JsonDataError
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 JsonDataError
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for JsonDataError
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>
impl<V, T> VZip for JsonDataError
fn vzip(self: Self) -> V