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

pub enum PostError {
    WrongContentType,
    MissingField(String),
    WrongDataTypeBool(ParseBoolError),
    WrongDataTypeInt(ParseIntError),
    WrongDataTypeFloat(ParseFloatError),
    NotUtf8(String),
}

Error that can happen when decoding POST data.

Variants

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

A field is missing from the received data.

Failed to parse a bool field.

Failed to parse an integer field.

Failed to parse a floating-point field.

Failed to parse a string field.

Trait Implementations

impl Debug for PostError
[src]

Formats the value using the given formatter.

impl Clone for PostError
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<ParseBoolError> for PostError
[src]

Performs the conversion.

impl From<ParseIntError> for PostError
[src]

Performs the conversion.

impl From<ParseFloatError> for PostError
[src]

Performs the conversion.