Enum rouille::input::post::PostFieldError [−][src]
pub enum PostFieldError {
IoError(IoError),
MissingField,
WrongFieldType,
UnexpectedMultipleValues,
WrongDataTypeInt(ParseIntError),
WrongDataTypeFloat(ParseFloatError),
}
Expand description
Error returned by the methods of the DecodePostField
trait.
Variants
IoError(IoError)
Could not read the body. Usually happens with files.
Tuple Fields of IoError
0: IoError
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.
WrongDataTypeInt(ParseIntError)
Failed to parse an integer field.
Tuple Fields of WrongDataTypeInt
WrongDataTypeFloat(ParseFloatError)
Failed to parse a floating-point field.
Tuple Fields of WrongDataTypeFloat
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.