mas_templates

Trait 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)

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.

Implementors§