Enum cli::types::EnvValue [−][src]
pub enum EnvValue {
Value(String),
Boolean(bool),
Number(isize),
List(Vec<String>),
Unset(EnvValueUnset),
Script(EnvValueScript),
Decode(EnvValueDecode),
Conditional(EnvValueConditioned),
PathGlob(EnvValuePathGlob),
Profile(IndexMap<String, EnvValue>),
}Expand description
Holds the env value or script
Variants
Value(String)The value as string
Tuple Fields of Value
0: StringBoolean(bool)The value as boolean
Tuple Fields of Boolean
0: boolNumber(isize)The value as number
Tuple Fields of Number
0: isizeThe value as a list of strings
Unset(EnvValueUnset)Unset env
Tuple Fields of Unset
Script(EnvValueScript)Script which will return the value
Tuple Fields of Script
Decode(EnvValueDecode)Env decoding info
Tuple Fields of Decode
Conditional(EnvValueConditioned)Conditional env value
Tuple Fields of Conditional
PathGlob(EnvValuePathGlob)Path glob
Tuple Fields of PathGlob
Profile env
Trait Implementations
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 RefUnwindSafe for EnvValue
impl UnwindSafe for EnvValue
Blanket Implementations
Mutably borrows from an owned value. Read more