Skip to main content

VarLookup

Trait VarLookup 

Source
pub trait VarLookup: Send + Sync {
    // Required method
    fn lookup(&self, name: &str) -> Option<String>;
}
Expand description

Trait for looking up variable values. Allows test injection without touching the real process environment.

Required Methods§

Source

fn lookup(&self, name: &str) -> Option<String>

Returns Some(value) if the variable is set, None if unset.

Implementors§