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§
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,
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.