Trait Env

Source
pub trait Env {
    // Required method
    fn var(&self, key: &str) -> Result<Cow<'_, str>, VarError>;
}
Expand description

Abstract over std::env for ConfigEnv

Required Methods§

Source

fn var(&self, key: &str) -> Result<Cow<'_, str>, VarError>

Implementations on Foreign Types§

Source§

impl Env for HashMap<String, String>

Source§

fn var(&self, key: &str) -> Result<Cow<'_, str>, VarError>

Implementors§