Enum rocket::request::FormParseError [−][src]
pub enum FormParseError<'f> {
BadValue(&'f RawStr, &'f RawStr),
Unknown(&'f RawStr, &'f RawStr),
Missing(&'f RawStr),
}
Expand description
Error returned by the FromForm
derive on form
parsing errors.
If multiple errors occur while parsing a form, the first error in the following precedence, from highest to lowest, is returned:
BadValue
orUnknown
in incoming form string field orderMissing
in lexical field order
Variants
The field named .0
with value .1
failed to parse or validate.
The parse was strict and the field named .0
with value .1
appeared
in the incoming form string but was unexpected.
This error cannot occur when parsing is lenient.
Missing(&'f RawStr)
The field named .0
was expected but is missing in the incoming form.
Tuple Fields of Missing
0: &'f RawStr
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<'f> RefUnwindSafe for FormParseError<'f>
impl<'f> Send for FormParseError<'f>
impl<'f> Sync for FormParseError<'f>
impl<'f> Unpin for FormParseError<'f>
impl<'f> UnwindSafe for FormParseError<'f>
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.