pub trait ValidatableForm<P, I>: Sizedwhere
P: Validatable<I, Self>,{
// Provided methods
fn validate(&mut self) -> Option<P> { ... }
fn new() -> Self { ... }
fn into_input(self) -> I { ... }
}Expand description
Convenience methods available on every form type T<Form>.
Implemented by #[derive(Validatable)]; the methods delegate to
Validatable.
Provided Methods§
Sourcefn validate(&mut self) -> Option<P>
fn validate(&mut self) -> Option<P>
Validates the form, writing per-field messages back into it, and returns the plain value when everything is valid.
Sourcefn into_input(self) -> I
fn into_input(self) -> I
Extracts the raw input, dropping validation results.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".