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