pub trait Normalizable {
// Provided methods
fn normalizations() -> &'static [Normalization] { ... }
fn normalize_attributes(attrs: &mut HashMap<String, Value>) { ... }
}Expand description
Trait for models that declare normalizations.
Provided Methods§
Sourcefn normalizations() -> &'static [Normalization]
fn normalizations() -> &'static [Normalization]
Returns the normalizations declared for this model.
Sourcefn normalize_attributes(attrs: &mut HashMap<String, Value>)
fn normalize_attributes(attrs: &mut HashMap<String, Value>)
Applies all normalizations to the given attribute map.
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.