EnvVarSource

Trait EnvVarSource 

Source
pub trait EnvVarSource {
    // Required method
    fn var(&self, key: &str) -> Option<String>;
}
Expand description

Trait for implementing custom environment variable sources. This is useful if you want to source environment variables from somewhere other than std::env::var.

Required Methods§

Source

fn var(&self, key: &str) -> Option<String>

Look up the variable in the source.

Implementations on Foreign Types§

Source§

impl EnvVarSource for BTreeMap<&str, &str>

Source§

fn var(&self, key: &str) -> Option<String>

Source§

impl EnvVarSource for BTreeMap<String, String>

Source§

fn var(&self, key: &str) -> Option<String>

Source§

impl EnvVarSource for HashMap<&str, &str>

Source§

fn var(&self, key: &str) -> Option<String>

Source§

impl EnvVarSource for HashMap<String, String>

Source§

fn var(&self, key: &str) -> Option<String>

Implementors§