Trait abscissa_core::config::Config[][src]

pub trait Config: Debug + Default + DeserializeOwned {
    fn load_toml(toml_string: impl AsRef<str>) -> Result<Self, FrameworkError>;
fn load_toml_file(path: impl AsRef<AbsPath>) -> Result<Self, FrameworkError>; }
Expand description

Trait for Abscissa configuration data structures.

Required methods

Load the configuration from the given TOML string.

Load the global configuration from the TOML file at the given path. If an error occurs reading or parsing the file, print it out and exit.

Implementors