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

pub enum PostFieldError {
    IoError(IoError),
    MissingField,
    WrongFieldType,
    UnexpectedMultipleValues,
    WrongDataTypeInt(ParseIntError),
    WrongDataTypeFloat(ParseFloatError),
}

Error returned by the methods of the DecodePostField trait.

Variants

Could not read the body. Usually happens with files.

A field is missing from the received data.

Expected a file but got a field, or vice versa.

Got multiple values for the same field while only one was expected.

Failed to parse an integer field.

Failed to parse a floating-point field.

Trait Implementations

impl Debug for PostFieldError
[src]

Formats the value using the given formatter.

impl From<IoError> for PostFieldError
[src]

Performs the conversion.

impl From<ParseIntError> for PostFieldError
[src]

Performs the conversion.

impl From<ParseFloatError> for PostFieldError
[src]

Performs the conversion.

impl Error for PostFieldError
[src]

A short description of the error. Read more

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

impl Display for PostFieldError
[src]

Formats the value using the given formatter.