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: String
Boolean(bool)

The value as boolean

Tuple Fields of Boolean

0: bool
Number(isize)

The value as number

Tuple Fields of Number

0: isize
List(Vec<String>)

The value as a list of strings

Tuple Fields of List

0: Vec<String>

Unset env

Tuple Fields of Unset

0: EnvValueUnset

Script which will return the value

Tuple Fields of Script

0: EnvValueScript

Env decoding info

Tuple Fields of Decode

0: EnvValueDecode
Conditional(EnvValueConditioned)

Conditional env value

Tuple Fields of Conditional

0: EnvValueConditioned

Path glob

Tuple Fields of PathGlob

0: EnvValuePathGlob

Profile env

Tuple Fields of Profile

0: IndexMap<String, EnvValue>

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.