Function primitives::config::configuration
source · pub fn configuration(
environment: Environment,
config_file: Option<&str>
) -> Result<Config, ConfigError>
Expand description
If no config_file
path is provided it will load the Environment
configuration.
If config_file
path is provided it will try to read and parse the file in Toml format.