[go: up one dir, main page]

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

Trait Implementations

impl Debug for PostError
[src]

Formats the value using the given formatter.

impl From<IoError> for PostError
[src]

Performs the conversion.