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

The request's body was not UTF8.

ParseError

Error while parsing.

Trait Implementations

impl From<FromUtf8Error> for JsonError

fn from(err: FromUtf8Error) -> JsonError

impl From<DecoderError> for JsonError

fn from(err: DecoderError) -> JsonError

Derived Implementations

impl Debug for JsonError

fn fmt(&self, __arg_0: &mut Formatter) -> Result