pub enum StepType {
Task {
task_template: String,
parameters: HashMap<String, Value>,
},
Condition {
condition: String,
then_steps: Vec<String>,
else_steps: Option<Vec<String>>,
},
Loop {
iterator: String,
items: Vec<Value>,
body_steps: Vec<String>,
},
Parallel {
branches: Vec<Vec<String>>,
},
Wait {
duration: Duration,
},
Checkpoint {
name: String,
},
}Expand description
Workflow step type.
Variants§
Task
Execute a task
Fields
Condition
Conditional execution
Fields
Loop
Loop iteration
Fields
Parallel
Parallel execution
Wait
Wait for duration
Checkpoint
Checkpoint for workflow state persistence
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StepType
impl<'de> Deserialize<'de> for StepType
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 StepType
impl RefUnwindSafe for StepType
impl Send for StepType
impl Sync for StepType
impl Unpin for StepType
impl UnsafeUnpin for StepType
impl UnwindSafe for StepType
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