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: usize§name: Option<String>§external_id: Option<String>§step_type: String§children: Vec<usize>§outcomes: Vec<StepOutcome>§error_behavior: Option<ErrorBehavior>§compensation_step_id: Option<usize>§do_compensate: bool§saga: bool§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§
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