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)
Tuple Fields
0: String
The value as string
Boolean(bool)
Tuple Fields
0: bool
The value as boolean
Number(isize)
Tuple Fields
0: isize
The value as number
List(Vec<String>)
The value as a list of strings
Unset(EnvValueUnset)
Tuple Fields
Unset env
Script(EnvValueScript)
Tuple Fields
Script which will return the value
Decode(EnvValueDecode)
Tuple Fields
Env decoding info
Conditional(EnvValueConditioned)
Tuple Fields
Conditional env value
PathGlob(EnvValuePathGlob)
Tuple Fields
Path glob
Profile(IndexMap<String, EnvValue>)
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