pub trait DeriveYamlConfig {
    // Required methods
    fn path() -> Result<PathBuf, ConfigError>;
    fn save(&self) -> Result<(), ConfigError>;
    fn load() -> Result<Self, ConfigError>
       where Self: Sized;
}

Required Methods§

source

fn path() -> Result<PathBuf, ConfigError>

§Errors

Will return Err if dirs::config_dir returns err.

source

fn save(&self) -> Result<(), ConfigError>

§Errors
source

fn load() -> Result<Self, ConfigError>
where Self: Sized,

§Errors

Object Safety§

This trait is not object safe.

Implementors§