Movatterモバイル変換


[0]ホーム

URL:


cli::types

StructTaskCondition

Source
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

Trait Implementations§

Source§

implClone forTaskCondition

Source§

fnclone(&self) ->TaskCondition

Returns a copy of the value.Read more
1.0.0 ·Source§

fnclone_from(&mut self, source: &Self)

Performs copy-assignment fromsource.Read more
Source§

implDebug forTaskCondition

Source§

fnfmt(&self, f: &mutFormatter<'_>) ->Result

Formats the value using the given formatter.Read more
Source§

implDefault forTaskCondition

Source§

fndefault() ->TaskCondition

Returns the “default value” for a type.Read more
Source§

impl<'de>Deserialize<'de> forTaskCondition

Source§

fndeserialize<__D>(__deserializer: __D) ->Result<Self, __D::Error>
where __D:Deserializer<'de>,

Deserialize this value from the given Serde deserializer.Read more
Source§

implSerialize forTaskCondition

Source§

fnserialize<__S>(&self, __serializer: __S) ->Result<__S::Ok, __S::Error>
where __S:Serializer,

Serialize this value into the given Serde serializer.Read more

Auto Trait Implementations§

§

implFreeze forTaskCondition

§

implRefUnwindSafe forTaskCondition

§

implSend forTaskCondition

§

implSync forTaskCondition

§

implUnpin forTaskCondition

§

implUnwindSafe forTaskCondition

Blanket Implementations§

Source§

impl<T>Any for T
where T: 'static + ?Sized,

Source§

fntype_id(&self) ->TypeId

Gets theTypeId ofself.Read more
Source§

impl<T>Borrow<T> for T
where T: ?Sized,

Source§

fnborrow(&self) ->&T

Immutably borrows from an owned value.Read more
Source§

impl<T>BorrowMut<T> for T
where T: ?Sized,

Source§

fnborrow_mut(&mut self) ->&mut T

Mutably borrows from an owned value.Read more
Source§

impl<T>CloneToUninit for T
where T:Clone,

Source§

unsafe fnclone_to_uninit(&self, dst:*mutu8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment fromself todst.Read more
Source§

impl<T>From<T> for T

Source§

fnfrom(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U>Into<U> for T
where U:From<T>,

Source§

fninto(self) -> U

CallsU::from(self).

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

Source§

impl<T>IntoEither for T

Source§

fninto_either(self, into_left:bool) ->Either<Self, Self>

Convertsself into aLeft variant ofEither<Self, Self>ifinto_left istrue.Convertsself into aRight variant ofEither<Self, Self>otherwise.Read more
Source§

fninto_either_with<F>(self, into_left: F) ->Either<Self, Self>
where F:FnOnce(&Self) ->bool,

Convertsself into aLeft variant ofEither<Self, Self>ifinto_left(&self) returnstrue.Convertsself into aRight variant ofEither<Self, Self>otherwise.Read more
§

impl<T> Pointable for T

§

constALIGN:usize

The alignment of pointer.
§

typeInit = T

The type for initializers.
§

unsafe fninit(init: <T as Pointable>::Init) ->usize

Initializes a with the given initializer.Read more
§

unsafe fnderef<'a>(ptr:usize) ->&'a T

Dereferences the given pointer.Read more
§

unsafe fnderef_mut<'a>(ptr:usize) ->&'a mut T

Mutably dereferences the given pointer.Read more
§

unsafe fndrop(ptr:usize)

Drops the object pointed to by the given pointer.Read more
Source§

impl<T>Same for T

Source§

typeOutput = T

Should always beSelf
Source§

impl<T>ToOwned for T
where T:Clone,

Source§

typeOwned = T

The resulting type after obtaining ownership.
Source§

fnto_owned(&self) -> T

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

fnclone_into(&self, target:&mut T)

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

impl<T, U>TryFrom<U> for T
where U:Into<T>,

Source§

typeError =Infallible

The type returned in the event of a conversion error.
Source§

fntry_from(value: U) ->Result<T, <T asTryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U>TryInto<U> for T
where U:TryFrom<T>,

Source§

typeError = <U asTryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fntry_into(self) ->Result<U, <U asTryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fnvzip(self) -> V

Source§

impl<T>DeserializeOwned for T
where T: for<'de>Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T


[8]ページ先頭

©2009-2025 Movatter.jp