pub struct WorkflowState {
pub instance_id: WorkflowId,
pub workflow_id: String,
pub version: Version,
pub status: WorkflowStatus,
pub current_stage: StageId,
pub input: HashMap<String, Vec<u8>>,
pub state: HashMap<String, Vec<u8>>,
pub metrics: WorkflowMetrics,
pub retry_attempts: HashMap<StageId, u32>,
pub created_at: SystemTime,
pub updated_at: SystemTime,
pub checkpoint_version: u64,
}Expand description
Workflow state that can be persisted
Fields§
§instance_id: WorkflowIdWorkflow instance ID
workflow_id: StringWorkflow definition ID
version: VersionWorkflow version
status: WorkflowStatusCurrent status
current_stage: StageIdCurrent stage
input: HashMap<String, Vec<u8>>Input data
state: HashMap<String, Vec<u8>>Workflow state data
metrics: WorkflowMetricsMetrics
retry_attempts: HashMap<StageId, u32>Retry attempts per stage
created_at: SystemTimeCreation timestamp
updated_at: SystemTimeLast updated timestamp
checkpoint_version: u64Checkpoint version
Trait Implementations§
Source§impl Clone for WorkflowState
impl Clone for WorkflowState
Source§fn clone(&self) -> WorkflowState
fn clone(&self) -> WorkflowState
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 WorkflowState
impl Debug for WorkflowState
Source§impl<'de> Deserialize<'de> for WorkflowState
impl<'de> Deserialize<'de> for WorkflowState
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 WorkflowState
impl RefUnwindSafe for WorkflowState
impl Send for WorkflowState
impl Sync for WorkflowState
impl Unpin for WorkflowState
impl UnwindSafe for WorkflowState
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