pub struct RollbackManager { /* private fields */ }Expand description
Rollback manager for workflow versions.
Implementations§
Source§impl RollbackManager
impl RollbackManager
Sourcepub fn with_max_points(max_points: usize) -> Self
pub fn with_max_points(max_points: usize) -> Self
Create a new rollback manager with custom limits.
Sourcepub fn create_rollback_point(
&self,
workflow_id: String,
definition: WorkflowDefinition,
) -> Result<String>
pub fn create_rollback_point( &self, workflow_id: String, definition: WorkflowDefinition, ) -> Result<String>
Create a rollback point.
Sourcepub fn rollback(&self, rollback_id: &str) -> Result<WorkflowDefinition>
pub fn rollback(&self, rollback_id: &str) -> Result<WorkflowDefinition>
Rollback to a specific rollback point.
Sourcepub fn get_rollback_point(&self, rollback_id: &str) -> Option<RollbackPoint>
pub fn get_rollback_point(&self, rollback_id: &str) -> Option<RollbackPoint>
Get a rollback point.
Sourcepub fn list_rollback_points(&self, workflow_id: &str) -> Vec<RollbackPoint>
pub fn list_rollback_points(&self, workflow_id: &str) -> Vec<RollbackPoint>
List all rollback points for a workflow.
Sourcepub fn delete_rollback_point(&self, rollback_id: &str) -> Option<RollbackPoint>
pub fn delete_rollback_point(&self, rollback_id: &str) -> Option<RollbackPoint>
Delete a rollback point.
Sourcepub fn delete_workflow_rollback_points(&self, workflow_id: &str) -> usize
pub fn delete_workflow_rollback_points(&self, workflow_id: &str) -> usize
Delete all rollback points for a workflow.
Sourcepub fn get_latest_rollback_point(
&self,
workflow_id: &str,
) -> Option<RollbackPoint>
pub fn get_latest_rollback_point( &self, workflow_id: &str, ) -> Option<RollbackPoint>
Get the latest rollback point for a workflow.
Sourcepub fn update_description(
&self,
rollback_id: &str,
description: String,
) -> Result<()>
pub fn update_description( &self, rollback_id: &str, description: String, ) -> Result<()>
Update rollback point description.
Sourcepub fn search_by_tag(&self, tag: &str) -> Vec<RollbackPoint>
pub fn search_by_tag(&self, tag: &str) -> Vec<RollbackPoint>
Search rollback points by tag.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RollbackManager
impl !RefUnwindSafe for RollbackManager
impl Send for RollbackManager
impl Sync for RollbackManager
impl Unpin for RollbackManager
impl UnsafeUnpin for RollbackManager
impl !UnwindSafe for RollbackManager
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