[][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:

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.

The field named .0 was expected but is missing in the incoming form.

Trait Implementations

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

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

Performs copy-assignment from source. Read more

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

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

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

Feeds a slice of this type into the given [Hasher]. Read more

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

Auto Trait Implementations

impl<'f> Send for FormParseError<'f>

impl<'f> Sync for FormParseError<'f>

Blanket Implementations

impl<T> From for T
[src]

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Typeable for T where
    T: Any

Get the TypeId of this object.

impl<T> IntoCollection for T

impl<T, I> AsResult for T where
    I: Input, 

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