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
IoError(IoError)
Could not read the body. Usually happens with files.
MissingField
A field is missing from the received data.
WrongFieldType
Expected a file but got a field, or vice versa.
UnexpectedMultipleValues
Got multiple values for the same field while only one was expected.
WrongDataTypeInt(ParseIntError)
Failed to parse an integer field.
WrongDataTypeFloat(ParseFloatError)
Failed to parse a floating-point field.
Trait Implementations
impl Debug for PostFieldError
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl From<IoError> for PostFieldError
[src]
fn from(err: IoError) -> PostFieldError
[src]
Performs the conversion.
impl From<ParseIntError> for PostFieldError
[src]
fn from(err: ParseIntError) -> PostFieldError
[src]
Performs the conversion.
impl From<ParseFloatError> for PostFieldError
[src]
fn from(err: ParseFloatError) -> PostFieldError
[src]
Performs the conversion.
impl Error for PostFieldError
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
[src]
The lower-level cause of this error, if any. Read more