pub struct Key {
pub name: &'static str,
pub env: &'static str,
pub legacy_env: Option<&'static str>,
pub help: &'static str,
}Expand description
One row of Config::KEYS.
Fields§
§name: &'static strName in the config file (section.name) and in --set.
env: &'static str§legacy_env: Option<&'static str>An older variable read when env is unset.
help: &'static strTrait Implementations§
impl Copy for Key
impl Eq for Key
impl StructuralPartialEq for Key
Auto Trait Implementations§
impl Forget for Key
impl Freeze for Key
impl Move for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnsafeUnpin for Key
impl UnwindSafe for Key
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