FormData

Trait FormData 

Source
pub trait FormData {
    type Item: 'static;
    type Error: ResponseError + 'static;

    // Required methods
    fn form(
        req: &HttpRequest,
    ) -> Result<Form<Self::Item, Self::Error>, Self::Error>;
    fn extract(value: Value<Self::Item>) -> Result<Self, Self::Error>
       where Self: Sized;
}

Required Associated Types§

Source

type Item: 'static

Source

type Error: ResponseError + 'static

Required Methods§

Source

fn form(req: &HttpRequest) -> Result<Form<Self::Item, Self::Error>, Self::Error>

Source

fn extract(value: Value<Self::Item>) -> Result<Self, Self::Error>
where Self: Sized,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§