Skip to main content

load_config

Function load_config 

Source
pub fn load_config<T>(
    basename: &str,
    env_prefix: &str,
) -> Result<T, ConfigError>
Expand description

Loads configuration from basename and environment variables with the given prefix.

The file source follows the config crate lookup rules, so etc/app will resolve to formats such as etc/app.toml. Environment variables override file values and use __ as nested separator.