Type Definition rocket::form::Result[][src]

type Result<'v, T> = Result<T, Errors<'v>>;
Expand description

Type alias for Result with an error type of Errors.

Trait Implementations

impl<I, T: Contains<I>> Contains<I> for Result<'_, T>[src]

fn contains(&self, item: I) -> bool[src]

Returns true if self contains item.

impl<'v, T: FromForm<'v>> FromForm<'v> for Result<'v, T>[src]

type Context = <T as FromForm<'v>>::Context

The form guard’s parsing context.

fn init(opts: Options) -> Self::Context[src]

Initializes and returns the parsing context for Self.

fn push_value(ctxt: &mut Self::Context, field: ValueField<'v>)[src]

Processes the value field field.

fn push_data<'life0, 'life1, 'async_trait>(
    ctxt: &'life0 mut Self::Context,
    field: DataField<'v, 'life1>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
    'v: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

Processes the data field field.

fn finalize(this: Self::Context) -> Result<'v, Self>[src]

Finalizes parsing. Returns the parsed value when successful or collection of Errors otherwise. Read more

fn push_error(_ctxt: &mut Self::Context, _error: Error<'r>)[src]

Processes the external form or field error _error. Read more

fn default(opts: Options) -> Option<Self>[src]

Returns a default value, if any, to use when a value is desired and parsing fails. Read more

impl<L, T: Len<L>> Len<L> for Result<'_, T>[src]

fn len(&self) -> L[src]

The length of the value.

fn len_into_u64(len: L) -> u64[src]

Convert len into u64.

fn zero_len() -> L[src]

The zero value for L.