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>) -> 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<Use>
Represents a step that uses an action.
impl Step<Use>
Represents a step that uses an action.
Sourcepub fn uses<Owner, Repo, Version>(
owner: Owner,
repo: Repo,
version: Version,
) -> Step<Use>
pub fn uses<Owner, Repo, Version>( owner: Owner, repo: Repo, version: Version, ) -> Step<Use>
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.
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<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>,
Deserialize this value from the given Serde deserializer. Read more
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,
Serialize this value into the given Serde serializer. Read more
impl<A> Eq for Step<A>where
A: Eq,
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.