pub struct StepValue {
pub id: Option<String>,
pub name: Option<String>,
pub if_condition: Option<Expression>,
pub uses: Option<String>,
pub with: Option<Input>,
pub run: Option<String>,
pub env: Option<Env>,
pub timeout_minutes: Option<u32>,
pub continue_on_error: Option<bool>,
pub working_directory: Option<String>,
pub retry: Option<RetryStrategy>,
pub artifacts: Option<Artifacts>,
}
Expand description
Represents a step value in the workflow.
Fields§
§id: Option<String>
The ID of the step.
name: Option<String>
The name of the step.
if_condition: Option<Expression>
The condition under which the step runs.
uses: Option<String>
The action to use in the step.
with: Option<Input>
Input parameters for the step.
run: Option<String>
The command to run in the step.
env: Option<Env>
Environment variables for the step.
timeout_minutes: Option<u32>
The timeout for the step in minutes.
continue_on_error: Option<bool>
Whether to continue on error.
working_directory: Option<String>
The working directory for the step.
retry: Option<RetryStrategy>
The retry strategy for the step.
artifacts: Option<Artifacts>
Artifacts produced by the step.
Implementations§
Source§impl StepValue
impl StepValue
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.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StepValue
impl<'de> Deserialize<'de> for StepValue
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 Eq for StepValue
impl StructuralPartialEq for StepValue
Auto Trait Implementations§
impl Freeze for StepValue
impl RefUnwindSafe for StepValue
impl Send for StepValue
impl Sync for StepValue
impl Unpin for StepValue
impl UnwindSafe for StepValue
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.