[][src]Enum rocket_contrib::json::JsonError

pub enum JsonError<'a> {
    Io(Error),
    Parse(&'a strError),
}

An error returned by the Json data guard when incoming data fails to serialize as JSON.

Variants

An I/O error occurred while reading the incoming request data.

The client's data was received successfully but failed to parse as valid JSON or as the requested type. The &str value in .0 is the raw data received from the user, while the Error in .1 is the deserialization error from serde.

Trait Implementations

impl<'a> Debug for JsonError<'a>
[src]

Auto Trait Implementations

impl<'a> Send for JsonError<'a>

impl<'a> Sync for JsonError<'a>

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Typeable for T where
    T: Any

Get the TypeId of this object.

impl<T> IntoCollection for T

impl<T, I> AsResult for T where
    I: Input, 

impl<T> IntoSql for T

Convert self to an expression for Diesel's query builder. Read more

Convert &self to an expression for Diesel's query builder. Read more

impl<T> Same for T

Should always be Self

impl<T> Erased for T

impl<T, U> TryInto for T where
    U: TryFrom<T>,