Enum rouille::input::json::JsonError
[−]
[src]
pub enum JsonError { WrongContentType, NotUtf8(FromUtf8Error), ParseError(DecoderError), }
Error that can happen when parsing the JSON input.
Variants
WrongContentType
Wrong content type.
NotUtf8(FromUtf8Error)
The request's body was not UTF8.
ParseError(DecoderError)
Error while parsing.
Trait Implementations
impl Debug for JsonError
[src]
impl From<FromUtf8Error> for JsonError
[src]
fn from(err: FromUtf8Error) -> JsonError
Performs the conversion.
impl From<DecoderError> for JsonError
[src]
fn from(err: DecoderError) -> JsonError
Performs the conversion.