pub enum WorkflowStep {
Call {
name: String,
call: CallDefinition,
output: Option<String>,
},
Emit {
name: String,
emit: EmitDefinition,
},
Listen {
name: String,
listen: ListenDefinition,
output: Option<String>,
},
Wait {
name: String,
wait: WaitDefinition,
},
Run {
name: String,
run: RunDefinition,
output: Option<String>,
},
Switch {
name: String,
switch: Vec<SwitchCase>,
},
For {
name: String,
for: ForDefinition,
},
Fork {
name: String,
fork: ForkDefinition,
},
Try {
name: String,
try: TryDefinition,
},
Raise {
name: String,
raise: RaiseDefinition,
},
Set {
name: String,
set: HashMap<String, Value>,
},
}
Expand description
Workflow step definition
Variants§
Call
Call step (HTTP, gRPC, OpenAPI, etc.)
Fields
§
call: CallDefinition
Call definition
Emit
Emit event step
Listen
Listen for events step
Fields
§
listen: ListenDefinition
Listen definition
Wait
Wait step
Run
Run container/script step
Fields
§
run: RunDefinition
Run definition
Switch
Switch/decision step
For
For loop step
Fork
Fork parallel execution step
Try
Try-catch error handling step
Raise
Raise error step
Set
Set variable step
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 · 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 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