Enum rouille::input::json::JsonError
[−]
[src]
pub enum JsonError {
BodyAlreadyExtracted,
WrongContentType,
IoError(IoError),
ParseError(DecoderError),
}Error that can happen when parsing the JSON input.
Variants
BodyAlreadyExtractedCan't parse the body of the request because it was already extracted.
WrongContentTypeWrong content type.
IoError(IoError)Could not read the body from the request. Also happens if the body is not valid UTF-8.
ParseError(DecoderError)Error while parsing.
Trait Implementations
impl Debug for JsonError[src]
impl From<IoError> for JsonError[src]
impl From<DecoderError> for JsonError[src]
fn from(err: DecoderError) -> JsonError
Performs the conversion.