Skip to main content

EnvProvider

Trait EnvProvider 

Source
pub trait EnvProvider: Send + Sync {
    // Required method
    fn get(&self, key: &str) -> Option<String>;

    // Provided method
    fn contains(&self, key: &str) -> bool { ... }
}
Expand description

Trait for environment variable access.

Required Methods§

Source

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

Provided Methods§

Source

fn contains(&self, key: &str) -> bool

Implementors§