pub struct WorkExecutionBinding {
pub binding_id: WorkExecutionBindingId,
pub work_ref: WorkItemRef,
pub target: WorkExecutionTarget,
pub idempotency_key: String,
pub correlation_id: String,
pub supersedes: Option<WorkExecutionBindingId>,
pub machine_state: WorkExecutionMachineState,
pub created_at: DateTime<Utc>,
}Expand description
Durable association between one WorkGraph item and one execution attempt.
Retries form a single append-only chain through supersedes. The binding
specification is immutable. Only machine_state advances, by
CAS through WorkExecutionLifecycleMachine. There is no copied execution
status here: reconciliation always reads the target runtime’s canonical run
state. Evidence projection is deduplicated by Self::evidence_id.
Fields§
§binding_id: WorkExecutionBindingId§work_ref: WorkItemRef§target: WorkExecutionTarget§idempotency_key: String§correlation_id: String§supersedes: Option<WorkExecutionBindingId>§machine_state: WorkExecutionMachineState§created_at: DateTime<Utc>Implementations§
Source§impl WorkExecutionBinding
impl WorkExecutionBinding
pub fn evidence_id(&self) -> String
Trait Implementations§
Source§impl Clone for WorkExecutionBinding
impl Clone for WorkExecutionBinding
Source§fn clone(&self) -> WorkExecutionBinding
fn clone(&self) -> WorkExecutionBinding
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 WorkExecutionBinding
impl Debug for WorkExecutionBinding
Source§impl<'de> Deserialize<'de> for WorkExecutionBinding
impl<'de> Deserialize<'de> for WorkExecutionBinding
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 WorkExecutionBinding
Source§impl PartialEq for WorkExecutionBinding
impl PartialEq for WorkExecutionBinding
Source§impl Serialize for WorkExecutionBinding
impl Serialize for WorkExecutionBinding
impl StructuralPartialEq for WorkExecutionBinding
Auto Trait Implementations§
impl Freeze for WorkExecutionBinding
impl RefUnwindSafe for WorkExecutionBinding
impl Send for WorkExecutionBinding
impl Sync for WorkExecutionBinding
impl Unpin for WorkExecutionBinding
impl UnsafeUnpin for WorkExecutionBinding
impl UnwindSafe for WorkExecutionBinding
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CoreExecutorTurnFinalizationGuard for Twhere
T: Send,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.