pub struct SettingsEnv { /* private fields */ }Expand description
An EnvSource that reads the real process
environment first and falls back to the env map in
$HOME/.omni-dev/settings.json — the value form of get_env_var.
Pass &SettingsEnv::load() from a thin production wrapper; tests inject a
pure MapEnv into the same *_with(&impl EnvSource, …) seam instead of
mutating the process environment.
Implementations§
Source§impl SettingsEnv
impl SettingsEnv
Trait Implementations§
Source§impl Debug for SettingsEnv
impl Debug for SettingsEnv
Source§impl Default for SettingsEnv
impl Default for SettingsEnv
Source§fn default() -> SettingsEnv
fn default() -> SettingsEnv
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SettingsEnv
impl RefUnwindSafe for SettingsEnv
impl Send for SettingsEnv
impl Sync for SettingsEnv
impl Unpin for SettingsEnv
impl UnsafeUnpin for SettingsEnv
impl UnwindSafe for SettingsEnv
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more