pub struct TaskCondition {
Show 13 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>>,
}
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

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)

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.