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§
Sourcefn add_env_vars(&mut self) -> &mut Self
fn add_env_vars(&mut self) -> &mut Self
Adds environment variables as a configuration source.
Sourcefn add_env_vars_with_prefix(&mut self, prefix: &str) -> &mut Self
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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.