Config#
- pub struct Config#
Nominal v2 configuration stored at
~/.config/nominal/config.yml.Example format:
nominal/tests/fixtures/config/config-v2-example.yml.
Implementations#
- impl Config
- pub fn empty() -> Self#
- pub fn load_or_default() -> Result<Self>#
Load the config from the default path, or return an empty v2 config when no file exists.
- pub fn load() -> Result<Self>#
Load the config from the default path (
~/.config/nominal/config.yml).
- pub fn version(&self) -> u32#
Trait implementations#
Derived: Clone, Debug, Deserialize, Serialize
Auto traits: Send, Sync, Unpin, UnwindSafe, RefUnwindSafe