Skip to main content

Crate origin_settings

Crate origin_settings 

Source
Expand description

Typed user settings.

A setting is declared once as a Setting constant — key and default in one place — and read through Settings. Nothing addresses settings by loose string.

pub const THEME: Setting<String> = Setting::new("ui.theme", || String::from("system"));

Structs§

Setting
Declaration of one setting: its key and its default, together.
Settings
Typed access to the settings store.
StorageSettingsStore
Settings on top of any Storage backend.

Constants§

SETTINGS_NAMESPACE
Storage namespace used for settings records.

Traits§

SettingsStore
Raw persistence for settings. Values are JSON text.