Trait mg_settings::settings::Settings
[−]
[src]
pub trait Settings { type Variant: Clone; fn set_value(&mut self, value: Self::Variant); fn to_variant(
name: &str,
value: Value
) -> Result<Self::Variant, SettingError>; }
Settings manager.
Associated Types
Required Methods
fn set_value(&mut self, value: Self::Variant)
Set a setting value from its variant.
fn to_variant(name: &str, value: Value) -> Result<Self::Variant, SettingError>
Convert a name and value to a variant.