pub type Result<'v, T> = Result<T, Errors<'v>>;
Expand description
Type alias for Result
with an error type of Errors
.
Aliased Type§
enum Result<'v, T> {
Ok(T),
Err(Errors<'v>),
}
Variants§
Trait Implementations§
source§impl<'v, T: FromForm<'v>> FromForm<'v> for Result<'v, T>
impl<'v, T: FromForm<'v>> FromForm<'v> for Result<'v, T>
source§fn push_value(ctxt: &mut Self::Context, field: ValueField<'v>)
fn push_value(ctxt: &mut Self::Context, field: ValueField<'v>)
Processes the value field
field
.source§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
Self: 'async_trait,
'v: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
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
Self: 'async_trait,
'v: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Processes the data field
field
.source§fn finalize(this: Self::Context) -> Result<'v, Self>
fn finalize(this: Self::Context) -> Result<'v, Self>
Finalizes parsing. Returns the parsed value when successful or
collection of
Errors
otherwise.