pub trait FormInput:
DeserializeOwned
+ Validate<Context = ()>
+ Send {
type View: FormView;
type Ctx: FromRequestParts<AppState> + Send;
// Required method
fn to_view(&self, ctx: Self::Ctx, errors: FormErrors) -> Self::View;
// Provided method
fn normalize(&mut self) { ... }
}Required Associated Types§
Required Methods§
fn to_view(&self, ctx: Self::Ctx, errors: FormErrors) -> Self::View
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".