pub struct RollbackPlan {
pub rollback_steps: HashMap<String, Vec<String>>,
pub execution_order: Vec<String>,
}Expand description
Rollback plan for a workflow
Fields§
§rollback_steps: HashMap<String, Vec<String>>Mapping of step ID to its rollback steps
execution_order: Vec<String>Order of steps that were executed
Implementations§
Source§impl RollbackPlan
impl RollbackPlan
Sourcepub fn add_rollback_step(&mut self, step_id: String, rollback_step: String)
pub fn add_rollback_step(&mut self, step_id: String, rollback_step: String)
Add a rollback step for a given step
Sourcepub fn record_execution(&mut self, step_id: String)
pub fn record_execution(&mut self, step_id: String)
Record that a step was executed
Sourcepub fn get_rollback_order(&self) -> Vec<String>
pub fn get_rollback_order(&self) -> Vec<String>
Get the rollback steps in reverse execution order
Trait Implementations§
Source§impl Clone for RollbackPlan
impl Clone for RollbackPlan
Source§fn clone(&self) -> RollbackPlan
fn clone(&self) -> RollbackPlan
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 RollbackPlan
impl Debug for RollbackPlan
Auto Trait Implementations§
impl Freeze for RollbackPlan
impl RefUnwindSafe for RollbackPlan
impl Send for RollbackPlan
impl Sync for RollbackPlan
impl Unpin for RollbackPlan
impl UnwindSafe for RollbackPlan
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