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.
This abstraction allows production code to use real environment variables while tests can inject mock values.