pub enum WorkflowCursorFrame {
Steps {
index: usize,
},
Branch {
selection: WorkflowBranchCursorSelection,
index: usize,
},
ForEach {
item_index: usize,
index: usize,
},
ForEachItem {
item_index: usize,
index: usize,
item: Value,
},
}Expand description
One level in a persisted workflow execution cursor.
Variants§
Steps
Top-level transition step list.
Branch
Selected branch step list.
Fields
§
selection: WorkflowBranchCursorSelectionBranch arm that was active when execution paused.
ForEach
Legacy active ForEach item step list.
This variant remains deserializable for old persisted rows, but the engine refuses to resume it because it lacks an item snapshot.
Fields
ForEachItem
Active ForEach item step list with an item snapshot for drift checks.
New workflow cursors use this variant so a paused workflow cannot resume on a different list item if the source array is reordered while waiting.
Trait Implementations§
Source§impl Clone for WorkflowCursorFrame
impl Clone for WorkflowCursorFrame
Source§impl Debug for WorkflowCursorFrame
impl Debug for WorkflowCursorFrame
Source§impl<'de> Deserialize<'de> for WorkflowCursorFrame
impl<'de> Deserialize<'de> for WorkflowCursorFrame
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
impl Eq for WorkflowCursorFrame
Source§impl PartialEq for WorkflowCursorFrame
impl PartialEq for WorkflowCursorFrame
Source§impl Serialize for WorkflowCursorFrame
impl Serialize for WorkflowCursorFrame
impl StructuralPartialEq for WorkflowCursorFrame
Auto Trait Implementations§
impl Freeze for WorkflowCursorFrame
impl RefUnwindSafe for WorkflowCursorFrame
impl Send for WorkflowCursorFrame
impl Sync for WorkflowCursorFrame
impl Unpin for WorkflowCursorFrame
impl UnsafeUnpin for WorkflowCursorFrame
impl UnwindSafe for WorkflowCursorFrame
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