pub trait EnvironmentVariablesExtensions {
    // Required methods
    fn add_env_vars(&mut self) -> &mut Self;
    fn add_env_vars_with_prefix(&mut self, prefix: &str) -> &mut Self;
}
Available on crate feature env only.
Expand description

Defines extension methods for ConfigurationBuilder.

Required Methods§

source

fn add_env_vars(&mut self) -> &mut Self

Adds environment variables as a configuration source.

source

fn add_env_vars_with_prefix(&mut self, prefix: &str) -> &mut Self

Adds environment variables as a configuration source.

Arguments
  • prefix - The prefix that environment variable names must start with. The prefix will be removed from the environment variable names.

Object Safety§

This trait is not object safe.

Implementors§