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

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> PartialEq<FormParseError<'f>> for FormParseError<'f>[src]

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

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

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

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

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

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[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>

impl<'f> Unpin for FormParseError<'f>

impl<'f> UnwindSafe for FormParseError<'f>

impl<'f> RefUnwindSafe for FormParseError<'f>

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> IntoCollection<T> for T

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

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