pub struct WorkflowStep {
pub id: usize,
pub name: Option<String>,
pub external_id: Option<String>,
pub step_type: String,
pub children: Vec<usize>,
pub outcomes: Vec<StepOutcome>,
pub error_behavior: Option<ErrorBehavior>,
pub compensation_step_id: Option<usize>,
pub do_compensate: bool,
pub saga: bool,
pub step_config: Option<Value>,
pub when: Option<StepCondition>,
}Expand description
A single step in a workflow definition.
Fields§
§id: usizeId.
name: Option<String>Name.
external_id: Option<String>External id.
step_type: StringStep type.
children: Vec<usize>Children.
outcomes: Vec<StepOutcome>Outcomes.
error_behavior: Option<ErrorBehavior>Error behavior.
compensation_step_id: Option<usize>Compensation step id.
do_compensate: boolDo compensate.
saga: boolSaga.
step_config: Option<Value>Serializable configuration for primitive steps (e.g. event_name, duration).
when: Option<StepCondition>Optional condition that must evaluate to true for this step to execute.
Implementations§
Source§impl WorkflowStep
impl WorkflowStep
pub fn new(id: usize, step_type: impl Into<String>) -> Self
Sourcepub fn artifact_inputs(&self) -> HashMap<String, String>
pub fn artifact_inputs(&self) -> HashMap<String, String>
Extract artifact input declarations from the step’s raw configuration.
Looks for config.inputs (a map of name → target path) and
config.input (a single artifact name, used by buildkit). Returns
a map of input name → target path. For config.input, the target
path is empty since buildkit uses the artifact as a build context
override rather than a mount point.
Trait Implementations§
Source§impl Clone for WorkflowStep
impl Clone for WorkflowStep
Source§fn clone(&self) -> WorkflowStep
fn clone(&self) -> WorkflowStep
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorkflowStep
impl Debug for WorkflowStep
Source§impl<'de> Deserialize<'de> for WorkflowStep
impl<'de> Deserialize<'de> for WorkflowStep
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
Auto Trait Implementations§
impl Freeze for WorkflowStep
impl RefUnwindSafe for WorkflowStep
impl Send for WorkflowStep
impl Sync for WorkflowStep
impl Unpin for WorkflowStep
impl UnsafeUnpin for WorkflowStep
impl UnwindSafe for WorkflowStep
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