pub trait BaseConfig: Sized + Default + Serialize + for<'a> Deserialize<'a> {
    const PACKAGE: &'static str;

    fn path() -> Option<PathBuf> { ... }
    fn load() -> Result<Self> { ... }
}
Expand description

Base configuration schema

Required Associated Constants

Package name (e.g. CARGO_PKG_NAME)

Provided Methods

Path of the serialized configuration

Load a config instance from the config dir

Implementors