pub trait Environment: Copy {
    // Required method
    fn var(&self, key: &str) -> Result<Option<String>, Error>;
}

Required Methods§

source

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

Access the given environment variables.

Implementations on Foreign Types§

source§

impl<S: BuildHasher> Environment for &HashMap<String, String, S>

A custom environment.

source§

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

Implementors§