pub struct Step<A> {
pub value: StepValue,
pub marker: A,
}Expand description
Represents a step in the workflow.
Fields§
§value: StepValueThe value of the step.
marker: AImplementations§
Source§impl Step<Run>
impl Step<Run>
Sourcepub fn if_condition(self, value: impl Into<Expression>) -> Step<Run>
pub fn if_condition(self, value: impl Into<Expression>) -> Step<Run>
Sets the if_condition field of this struct.
Sourcepub fn timeout_minutes(self, value: impl Into<u32>) -> Step<Run>
pub fn timeout_minutes(self, value: impl Into<u32>) -> Step<Run>
Sets the timeout_minutes field of this struct.
Sourcepub fn continue_on_error(self, value: impl Into<bool>) -> Step<Run>
pub fn continue_on_error(self, value: impl Into<bool>) -> Step<Run>
Sets the continue_on_error field of this struct.
Sourcepub fn working_directory(self, value: impl Into<String>) -> Step<Run>
pub fn working_directory(self, value: impl Into<String>) -> Step<Run>
Sets the working_directory field of this struct.
Source§impl Step<Use>
impl Step<Use>
Sourcepub fn if_condition(self, value: impl Into<Expression>) -> Step<Use>
pub fn if_condition(self, value: impl Into<Expression>) -> Step<Use>
Sets the if_condition field of this struct.
Sourcepub fn timeout_minutes(self, value: impl Into<u32>) -> Step<Use>
pub fn timeout_minutes(self, value: impl Into<u32>) -> Step<Use>
Sets the timeout_minutes field of this struct.
Sourcepub fn continue_on_error(self, value: impl Into<bool>) -> Step<Use>
pub fn continue_on_error(self, value: impl Into<bool>) -> Step<Use>
Sets the continue_on_error field of this struct.
Sourcepub fn working_directory(self, value: impl Into<String>) -> Step<Use>
pub fn working_directory(self, value: impl Into<String>) -> Step<Use>
Sets the working_directory field of this struct.
Source§impl Step<Toolchain>
impl Step<Toolchain>
pub fn toolchain() -> Step<Toolchain>
pub fn add_version(self, version: Version) -> Step<Toolchain>
pub fn add_component(self, component: Component) -> Step<Toolchain>
pub fn add_stable(self) -> Step<Toolchain>
pub fn add_nightly(self) -> Step<Toolchain>
pub fn add_clippy(self) -> Step<Toolchain>
pub fn add_fmt(self) -> Step<Toolchain>
pub fn target( self, arch: Arch, vendor: Vendor, system: System, abi: Option<Abi>, ) -> Step<Toolchain>
Source§impl Step<Toolchain>
impl Step<Toolchain>
Sourcepub fn version(self, value: impl Into<Vec<Version>>) -> Step<Toolchain>
pub fn version(self, value: impl Into<Vec<Version>>) -> Step<Toolchain>
Sets the version field of this struct.
Sourcepub fn components(self, value: impl Into<Vec<Component>>) -> Step<Toolchain>
pub fn components(self, value: impl Into<Vec<Component>>) -> Step<Toolchain>
Sets the components field of this struct.
Sourcepub fn cache(self, value: impl Into<bool>) -> Step<Toolchain>
pub fn cache(self, value: impl Into<bool>) -> Step<Toolchain>
Sets the cache field of this struct.
Sourcepub fn cache_directories(self, value: impl Into<Vec<String>>) -> Step<Toolchain>
pub fn cache_directories(self, value: impl Into<Vec<String>>) -> Step<Toolchain>
Sets the cache_directories field of this struct.
Sourcepub fn cache_workspaces(self, value: impl Into<Vec<String>>) -> Step<Toolchain>
pub fn cache_workspaces(self, value: impl Into<Vec<String>>) -> Step<Toolchain>
Sets the cache_workspaces field of this struct.
Sourcepub fn cache_on_failure(self, value: impl Into<bool>) -> Step<Toolchain>
pub fn cache_on_failure(self, value: impl Into<bool>) -> Step<Toolchain>
Sets the cache_on_failure field of this struct.
Sourcepub fn cache_key(self, value: impl Into<String>) -> Step<Toolchain>
pub fn cache_key(self, value: impl Into<String>) -> Step<Toolchain>
Sets the cache_key field of this struct.
Sourcepub fn matcher(self, value: impl Into<bool>) -> Step<Toolchain>
pub fn matcher(self, value: impl Into<bool>) -> Step<Toolchain>
Sets the matcher field of this struct.
Sourcepub fn rust_flags(self, value: impl Into<RustFlags>) -> Step<Toolchain>
pub fn rust_flags(self, value: impl Into<RustFlags>) -> Step<Toolchain>
Sets the rust_flags field of this struct.
Sourcepub fn override_default(self, value: impl Into<bool>) -> Step<Toolchain>
pub fn override_default(self, value: impl Into<bool>) -> Step<Toolchain>
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<Step<A>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Step<A>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl<A> Serialize for Step<A>
impl<A> Serialize for Step<A>
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl<A> Eq for Step<A>where
A: Eq,
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.