Enum rouille::input::post::PostError [] [src]

pub enum PostError {
    WrongContentType,
    BodyAlreadyExtracted,
    IoError(IoError),
    NotUtf8(String),
    Field {
        field: Cow<'static, str>,
        error: PostFieldError,
    },
}

Error that can happen when decoding POST data.

Variants

The Content-Type header of the request indicates that it doesn't contain POST data.

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

Could not read the body from the request.

Failed to parse a string field.

There was an error with a particular field.

Fields of Field

Trait Implementations

impl Debug for PostError
[src]

Formats the value using the given formatter.

impl From<IoError> for PostError
[src]

Performs the conversion.

impl Error for PostError
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl Display for PostError
[src]

Formats the value using the given formatter. Read more