pub struct TaskCondition {Show 17 fields
pub condition_type:Option<ConditionType>, pub fail_message:Option<String>, pub profiles:Option<Vec<String>>, pub os: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_not: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§
§condition_type:Option<ConditionType>condition type (AND/OR) by default AND
fail_message:Option<String>Failure message
profiles:Option<Vec<String>>Profile names (development, …)
os:Option<Vec<String>>As defined in the cfg target_os
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_not:Option<IndexMap<String,String>>Environment variables and the values which they must not be defined as
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
Implementations§
Source§implTaskCondition
implTaskCondition
pub fnget_condition_type(&self) ->ConditionType
Trait Implementations§
Source§implClone forTaskCondition
implClone forTaskCondition
Source§fnclone(&self) ->TaskCondition
fnclone(&self) ->TaskCondition
Returns a copy of the value.Read more
1.0.0 ·Source§fnclone_from(&mut self, source: &Self)
fnclone_from(&mut self, source: &Self)
Performs copy-assignment from
source.Read moreSource§implDebug forTaskCondition
implDebug forTaskCondition
Source§implDefault forTaskCondition
implDefault forTaskCondition
Source§fndefault() ->TaskCondition
fndefault() ->TaskCondition
Returns the “default value” for a type.Read more
Source§impl<'de>Deserialize<'de> forTaskCondition
impl<'de>Deserialize<'de> forTaskCondition
Source§fndeserialize<__D>(__deserializer: __D) ->Result<Self, __D::Error>where __D:Deserializer<'de>,
fndeserialize<__D>(__deserializer: __D) ->Result<Self, __D::Error>where __D:Deserializer<'de>,
Deserialize this value from the given Serde deserializer.Read more
Auto Trait Implementations§
implFreeze forTaskCondition
implRefUnwindSafe forTaskCondition
implSend forTaskCondition
implSync forTaskCondition
implUnpin forTaskCondition
implUnwindSafe forTaskCondition
Blanket Implementations§
Source§impl<T>BorrowMut<T> for Twhere T: ?Sized,
impl<T>BorrowMut<T> for Twhere T: ?Sized,
Source§fnborrow_mut(&mut self) ->&mut T
fnborrow_mut(&mut self) ->&mut T
Mutably borrows from an owned value.Read more
Source§impl<T>CloneToUninit for Twhere T:Clone,
impl<T>CloneToUninit for Twhere T:Clone,
Source§impl<T>IntoEither for T
impl<T>IntoEither for T
Source§fninto_either(self, into_left:bool) ->Either<Self, Self>
fninto_either(self, into_left:bool) ->Either<Self, Self>
Converts
self into aLeft variant ofEither<Self, Self>ifinto_left istrue.Convertsself into aRight variant ofEither<Self, Self>otherwise.Read moreSource§fninto_either_with<F>(self, into_left: F) ->Either<Self, Self>
fninto_either_with<F>(self, into_left: F) ->Either<Self, Self>
Converts
self into aLeft variant ofEither<Self, Self>ifinto_left(&self) returnstrue.Convertsself into aRight variant ofEither<Self, Self>otherwise.Read more