pub struct EnvVarSpec {
pub name: String,
pub description: Option<String>,
pub option_mapped: Option<String>,
pub default_value: Option<String>,
}Expand description
An environment variable that can be used to configure the command.
Fields§
§name: StringThe environment variable name, e.g. “CONFIG_FILE”, “DEBUG”.
description: Option<String>Description of what this environment variable does.
option_mapped: Option<String>The option this environment variable maps to (if any), e.g. “–config”.
default_value: Option<String>Default value for this environment variable, if mentioned.
Trait Implementations§
Source§impl Clone for EnvVarSpec
impl Clone for EnvVarSpec
Source§fn clone(&self) -> EnvVarSpec
fn clone(&self) -> EnvVarSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EnvVarSpec
impl Debug for EnvVarSpec
Source§impl<'de> Deserialize<'de> for EnvVarSpec
impl<'de> Deserialize<'de> for EnvVarSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EnvVarSpec
impl RefUnwindSafe for EnvVarSpec
impl Send for EnvVarSpec
impl Sync for EnvVarSpec
impl Unpin for EnvVarSpec
impl UnwindSafe for EnvVarSpec
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