Trait mas_templates::ToFormState
source · pub trait ToFormState: Serialize {
type Field: FormField;
// Provided method
fn to_form_state(&self) -> FormState<Self::Field> { ... }
}
Expand description
Utility trait to help creating FormState
out of a form
Required Associated Types§
Provided Methods§
sourcefn to_form_state(&self) -> FormState<Self::Field>
fn to_form_state(&self) -> FormState<Self::Field>
Generate a FormState
out of Self
§Panics
If the form fails to serialize or Self::Field
fails to deserialize
Object Safety§
This trait is not object safe.