Struct cli::types::TaskCondition

source ·
pub struct TaskCondition {
Show 14 fields pub fail_message: Option<String>, pub profiles: Option<Vec<String>>, pub platforms: Option<Vec<String>>, pub channels: Option<Vec<String>>, pub env_set: Option<Vec<String>>, pub env_not_set: Option<Vec<String>>, pub env: Option<IndexMap<String, String>>, pub env_true: Option<Vec<String>>, pub env_false: Option<Vec<String>>, pub env_contains: Option<IndexMap<String, String>>, pub rust_version: Option<RustVersionCondition>, pub files_exist: Option<Vec<String>>, pub files_not_exist: Option<Vec<String>>, pub files_modified: Option<FilesFilesModifiedCondition>,
}
Expand description

Holds condition attributes

Fields§

§fail_message: Option<String>

Failure message

§profiles: Option<Vec<String>>

Profile names (development, …)

§platforms: Option<Vec<String>>

Platform names (linux, windows, mac)

§channels: Option<Vec<String>>

Channel names (stable, beta, nightly)

§env_set: Option<Vec<String>>

Environment variables which must be defined

§env_not_set: Option<Vec<String>>

Environment variables which must not be defined

§env: Option<IndexMap<String, String>>

Environment variables and their values

§env_true: Option<Vec<String>>

Environment variables which are defined as true

§env_false: Option<Vec<String>>

Environment variables which are defined as false

§env_contains: Option<IndexMap<String, String>>

Environment variables and the values which they are required to contain

§rust_version: Option<RustVersionCondition>

Rust version condition

§files_exist: Option<Vec<String>>

Files exist

§files_not_exist: Option<Vec<String>>

Files which do not exist

§files_modified: Option<FilesFilesModifiedCondition>

Files modified since last execution

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.