Skip to main content

PreferencesModel

Trait PreferencesModel 

Source
pub trait PreferencesModel:
    Serialize
    + DeserializeOwned
    + Default {
    const CODE: &'static str;
}
Expand description

A typed per-operator counterpart of SettingsModel: the same shape, stored once per operator among their preferences rather than once per deployment. CODE is the storage key, namespaced to the module.

Required Associated Constants§

Source

const CODE: &'static str

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§