pub fn load_config<T>(
basename: &str,
env_prefix: &str,
) -> Result<T, ConfigError>where
T: DeserializeOwned,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.