Skip to main content

EnvReader

Trait EnvReader 

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

Reads a key → optional string value. The single production implementation, ProcessEnv, delegates to std::env::var. Tests hand-roll a fake EnvReader to keep state local.

Required Methods§

Source

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

Implementors§