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
WrongContentType
The Content-Type
header of the request indicates that it doesn't contain POST data.
MissingField(String)
A field is missing from the received data.
WrongDataTypeBool(ParseBoolError)
Failed to parse a bool
field.
WrongDataTypeInt(ParseIntError)
Failed to parse an integer field.
WrongDataTypeFloat(ParseFloatError)
Failed to parse a floating-point field.
NotUtf8(String)
Failed to parse a string field.
Trait Implementations
impl Debug for PostError
[src]
impl Clone for PostError
[src]
fn clone(&self) -> PostError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl From<ParseBoolError> for PostError
[src]
fn from(err: ParseBoolError) -> PostError
Performs the conversion.
impl From<ParseIntError> for PostError
[src]
fn from(err: ParseIntError) -> PostError
Performs the conversion.
impl From<ParseFloatError> for PostError
[src]
fn from(err: ParseFloatError) -> PostError
Performs the conversion.