pub struct WorkflowTransitionCommand {
pub delivery_key: String,
pub delivery_digest: String,
pub event_type: String,
pub event_digest: String,
pub event_payload: Value,
pub next_state: Value,
pub action_intents: Vec<ActionIntent>,
pub outcome: EvaluationOutcome,
pub disposition: WorkDisposition,
}Expand description
The only result a workflow driver may return. The queue commits the state, event, intents and scheduling disposition atomically before any provider is allowed to dispatch an external effect.
Fields§
§delivery_key: StringIdempotency key of this transition.
delivery_digest: StringContent digest; a reused key with a different digest is a conflict.
event_type: StringStable machine-readable event type.
event_digest: StringDigest of the authoritative event.
event_payload: ValueAuthoritative event payload.
next_state: ValueNew authoritative state.
action_intents: Vec<ActionIntent>Intents to persist in the same transaction.
outcome: EvaluationOutcomeCompletion-policy accounting for this transition.
disposition: WorkDispositionScheduling disposition.
Implementations§
Trait Implementations§
Source§impl Clone for WorkflowTransitionCommand
impl Clone for WorkflowTransitionCommand
Source§fn clone(&self) -> WorkflowTransitionCommand
fn clone(&self) -> WorkflowTransitionCommand
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 WorkflowTransitionCommand
impl Debug for WorkflowTransitionCommand
impl StructuralPartialEq for WorkflowTransitionCommand
Auto Trait Implementations§
impl Freeze for WorkflowTransitionCommand
impl RefUnwindSafe for WorkflowTransitionCommand
impl Send for WorkflowTransitionCommand
impl Sync for WorkflowTransitionCommand
impl Unpin for WorkflowTransitionCommand
impl UnsafeUnpin for WorkflowTransitionCommand
impl UnwindSafe for WorkflowTransitionCommand
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