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

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

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

Variants

Io(Error)

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

Tuple Fields of Io

0: Error
Parse(&'a strError)

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.

Tuple Fields of Parse

0: &'a str1: Error

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts self into a collection.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Get the TypeId of this object.