pub struct Env {
pub name: &'static str,
pub aliases: &'static [&'static str],
}Expand description
The environment binding: the variable name a value may arrive under.
Fields§
§name: &'static strThe variable name, e.g. "APP_LOG_LEVEL".
aliases: &'static [&'static str]Other names still honoured, so a legacy name is recognised rather than reported as a mistake.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Env
impl Freeze for Env
impl Move for Env
impl RefUnwindSafe for Env
impl Send for Env
impl Sync for Env
impl Unpin for Env
impl UnsafeUnpin for Env
impl UnwindSafe for Env
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