[go: up one dir, main page]

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

Can't parse the body of the request because it was already extracted.

Wrong content type.

Could not read the body from the request. Also happens if the body is not valid UTF-8.

Error while parsing.

Trait Implementations

impl Debug for JsonError
[src]

Formats the value using the given formatter.

impl From<IoError> for JsonError
[src]

Performs the conversion.

impl From<DecoderError> for JsonError
[src]

Performs the conversion.