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

The variant enum representing the setting setters.

Required Methods

Set a setting value from its variant.

Convert a name and value to a variant.

Implementors