toml_config

Trait TomlConfig

source
pub trait TomlConfig<F: DeserializeOwned>: Sized + From<F> {
    // Provided method
    fn load_toml_file(path: impl AsRef<Path>) -> Result<Self, Error> { ... }
}

Provided Methods§

source

fn load_toml_file(path: impl AsRef<Path>) -> Result<Self, Error>

Load config from a .toml file in the filesystem

Object Safety§

This trait is not object safe.

Implementors§