Trait mas_templates::FormField

source ·
pub trait FormField: Copy + Hash + PartialEq + Eq + Serialize + for<'de> Deserialize<'de> {
    // Required method
    fn keep(&self) -> bool;
}
Expand description

A trait which should be used for form field enums

Required Methods§

source

fn keep(&self) -> bool

Return false for fields where values should not be kept (e.g. password fields)

Object Safety§

This trait is not object safe.

Implementors§