pub struct WorkflowInstance {
pub id: String,
pub tenant_id: TenantId,
pub subject_id: SubjectId,
pub definition_id: String,
pub revision: u64,
pub execution_profile_id: String,
pub execution_profile_revision: u64,
pub lifecycle: LifecyclePolicy,
pub status: String,
pub state_version: i64,
pub event_sequence: i64,
pub control_epoch: i64,
}Expand description
One durable instance pinned to a revision and execution profile for its lifetime.
Fields§
§id: StringStable identifier of this record.
tenant_id: TenantIdTenant that owns this record.
subject_id: SubjectIdSubject (user or service principal) acting on or owning this record.
definition_id: StringWorkflow definition this record belongs to.
revision: u64Monotonic revision number.
execution_profile_id: StringExecution profile the instance pins.
execution_profile_revision: u64Pinned execution profile revision.
lifecycle: LifecyclePolicyLifecycle policy applied on database time.
status: StringCurrent lifecycle status.
state_version: i64CAS version of the authoritative state.
event_sequence: i64Sequence of the last authoritative event.
control_epoch: i64Instance control epoch; pause/resume bump it and stale workers fail.
Trait Implementations§
Source§impl Clone for WorkflowInstance
impl Clone for WorkflowInstance
Source§fn clone(&self) -> WorkflowInstance
fn clone(&self) -> WorkflowInstance
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 WorkflowInstance
impl Debug for WorkflowInstance
Source§impl<'de> Deserialize<'de> for WorkflowInstance
impl<'de> Deserialize<'de> for WorkflowInstance
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
Source§impl PartialEq for WorkflowInstance
impl PartialEq for WorkflowInstance
Source§impl Serialize for WorkflowInstance
impl Serialize for WorkflowInstance
impl StructuralPartialEq for WorkflowInstance
Auto Trait Implementations§
impl Freeze for WorkflowInstance
impl RefUnwindSafe for WorkflowInstance
impl Send for WorkflowInstance
impl Sync for WorkflowInstance
impl Unpin for WorkflowInstance
impl UnsafeUnpin for WorkflowInstance
impl UnwindSafe for WorkflowInstance
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