pub struct Step<A> {
pub value: StepValue,
pub marker: A,
}
Expand description
Represents a step in the workflow.
Fields§
§value: StepValue
The value of the step.
marker: A
Implementations§
Source§impl Step<Run>
impl Step<Run>
Sourcepub fn if_condition(self, value: impl Into<Expression>) -> Self
pub fn if_condition(self, value: impl Into<Expression>) -> Self
Sets the if_condition
field of this struct.
Sourcepub fn timeout_minutes(self, value: impl Into<u32>) -> Self
pub fn timeout_minutes(self, value: impl Into<u32>) -> Self
Sets the timeout_minutes
field of this struct.
Sourcepub fn continue_on_error(self, value: impl Into<bool>) -> Self
pub fn continue_on_error(self, value: impl Into<bool>) -> Self
Sets the continue_on_error
field of this struct.
Sourcepub fn working_directory(self, value: impl Into<String>) -> Self
pub fn working_directory(self, value: impl Into<String>) -> Self
Sets the working_directory
field of this struct.
Sourcepub fn retry(self, value: impl Into<RetryStrategy>) -> Self
pub fn retry(self, value: impl Into<RetryStrategy>) -> Self
Sets the retry
field of this struct.
Source§impl Step<Use>
impl Step<Use>
Sourcepub fn if_condition(self, value: impl Into<Expression>) -> Self
pub fn if_condition(self, value: impl Into<Expression>) -> Self
Sets the if_condition
field of this struct.
Sourcepub fn timeout_minutes(self, value: impl Into<u32>) -> Self
pub fn timeout_minutes(self, value: impl Into<u32>) -> Self
Sets the timeout_minutes
field of this struct.
Sourcepub fn continue_on_error(self, value: impl Into<bool>) -> Self
pub fn continue_on_error(self, value: impl Into<bool>) -> Self
Sets the continue_on_error
field of this struct.
Sourcepub fn working_directory(self, value: impl Into<String>) -> Self
pub fn working_directory(self, value: impl Into<String>) -> Self
Sets the working_directory
field of this struct.
Sourcepub fn retry(self, value: impl Into<RetryStrategy>) -> Self
pub fn retry(self, value: impl Into<RetryStrategy>) -> Self
Sets the retry
field of this struct.
Source§impl Step<Toolchain>
impl Step<Toolchain>
pub fn toolchain() -> Step<Toolchain>
pub fn add_version(self, version: Version) -> Self
pub fn add_component(self, component: Component) -> Self
pub fn add_stable(self) -> Self
pub fn add_nightly(self) -> Self
pub fn add_clippy(self) -> Self
pub fn add_fmt(self) -> Self
pub fn target( self, arch: Arch, vendor: Vendor, system: System, abi: Option<Abi>, ) -> Self
Source§impl Step<Toolchain>
impl Step<Toolchain>
Sourcepub fn version(self, value: impl Into<Vec<Version>>) -> Self
pub fn version(self, value: impl Into<Vec<Version>>) -> Self
Sets the version
field of this struct.
Sourcepub fn components(self, value: impl Into<Vec<Component>>) -> Self
pub fn components(self, value: impl Into<Vec<Component>>) -> Self
Sets the components
field of this struct.
Sourcepub fn cache_directories(self, value: impl Into<Vec<String>>) -> Self
pub fn cache_directories(self, value: impl Into<Vec<String>>) -> Self
Sets the cache_directories
field of this struct.
Sourcepub fn cache_workspaces(self, value: impl Into<Vec<String>>) -> Self
pub fn cache_workspaces(self, value: impl Into<Vec<String>>) -> Self
Sets the cache_workspaces
field of this struct.
Sourcepub fn cache_on_failure(self, value: impl Into<bool>) -> Self
pub fn cache_on_failure(self, value: impl Into<bool>) -> Self
Sets the cache_on_failure
field of this struct.
Sourcepub fn cache_key(self, value: impl Into<String>) -> Self
pub fn cache_key(self, value: impl Into<String>) -> Self
Sets the cache_key
field of this struct.
Sourcepub fn rust_flags(self, value: impl Into<RustFlags>) -> Self
pub fn rust_flags(self, value: impl Into<RustFlags>) -> Self
Sets the rust_flags
field of this struct.
Sourcepub fn override_default(self, value: impl Into<bool>) -> Self
pub fn override_default(self, value: impl Into<bool>) -> Self
Sets the override_default
field of this struct.
Trait Implementations§
Source§impl<'de, A> Deserialize<'de> for Step<A>where
A: Default,
impl<'de, A> Deserialize<'de> for Step<A>where
A: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl<A: Eq> Eq for Step<A>
impl<A> StructuralPartialEq for Step<A>
Auto Trait Implementations§
impl<A> Freeze for Step<A>where
A: Freeze,
impl<A> RefUnwindSafe for Step<A>where
A: RefUnwindSafe,
impl<A> Send for Step<A>where
A: Send,
impl<A> Sync for Step<A>where
A: Sync,
impl<A> Unpin for Step<A>where
A: Unpin,
impl<A> UnwindSafe for Step<A>where
A: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.