[][src]Enum rocket::request::FormParseError

pub enum FormParseError<'f> {
    BadValue(&'f RawStr, &'f RawStr),
    Unknown(&'f RawStr, &'f RawStr),
    Missing(&'f RawStr),
}

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 or Unknown in incoming form string field order
  • Missing in lexical field order

Variants

BadValue(&'f RawStr, &'f RawStr)

The field named .0 with value .1 failed to parse or validate.

Unknown(&'f RawStr, &'f RawStr)

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.

Trait Implementations

impl<'f> Clone for FormParseError<'f>[src]

impl<'f> Copy for FormParseError<'f>[src]

impl<'f> Debug for FormParseError<'f>[src]

impl<'f> Eq for FormParseError<'f>[src]

impl<'f> Hash for FormParseError<'f>[src]

impl<'f> PartialEq<FormParseError<'f>> for FormParseError<'f>[src]

impl<'f> StructuralEq for FormParseError<'f>[src]

impl<'f> StructuralPartialEq for FormParseError<'f>[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, I> AsResult<T, I> for T where
    I: Input
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoCollection<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any