pub struct Step<A> { /* private fields */ }
Expand description
Represents a step in the workflow.
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<Use>
Represents a step that uses an action.
impl Step<Use>
Represents a step that uses an action.
Sourcepub fn uses<Owner: ToString, Repo: ToString, Version: ToString>(
owner: Owner,
repo: Repo,
version: Version,
) -> Self
pub fn uses<Owner: ToString, Repo: ToString, Version: ToString>( owner: Owner, repo: Repo, version: Version, ) -> Self
Creates a new Step<Use>
that uses an action.
Sourcepub fn checkout() -> Step<Use>
pub fn checkout() -> Step<Use>
Creates a step pointing to the default GitHub’s Checkout Action.
Sourcepub fn add_with_when<I: Into<Input>>(self, cond: bool, new_with: I) -> Self
pub fn add_with_when<I: Into<Input>>(self, cond: bool, new_with: I) -> Self
Adds a new input to the step when a condition is met.
Trait Implementations§
Source§impl<'de, A> Deserialize<'de> for Step<A>
impl<'de, A> Deserialize<'de> for Step<A>
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>,
Deserialize this value from the given Serde deserializer. Read more
impl<A: Eq> Eq for Step<A>
impl<A> StructuralPartialEq for Step<A>
Auto Trait Implementations§
impl<A> Freeze for Step<A>
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
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<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
Compare self to
key
and return true
if they are equal.