pub struct WorkflowInterruptCommand {
pub decision_id: WorkflowSignalId,
pub checkpoint_id: CheckpointId,
pub interrupt_id: WorkflowInterruptId,
pub decision: WorkflowInterruptDecision,
}Expand description
Idempotent control-plane command for one human-review request.
Fields§
§decision_id: WorkflowSignalIdStable publication identity used for duplicate detection.
checkpoint_id: CheckpointIdWorkflow task awaiting the decision.
interrupt_id: WorkflowInterruptIdExact request being decided.
decision: WorkflowInterruptDecisionTyped reviewer decision.
Implementations§
Source§impl WorkflowInterruptCommand
impl WorkflowInterruptCommand
Sourcepub fn new(
checkpoint_id: CheckpointId,
interrupt_id: WorkflowInterruptId,
decision: WorkflowInterruptDecision,
) -> Result<Self, WorkflowWaitError>
pub fn new( checkpoint_id: CheckpointId, interrupt_id: WorkflowInterruptId, decision: WorkflowInterruptDecision, ) -> Result<Self, WorkflowWaitError>
Creates a command with a generated idempotency identity.
§Errors
Rejects invalid edited values or rejection explanations.
Sourcepub fn with_id(
decision_id: WorkflowSignalId,
checkpoint_id: CheckpointId,
interrupt_id: WorkflowInterruptId,
decision: WorkflowInterruptDecision,
) -> Result<Self, WorkflowWaitError>
pub fn with_id( decision_id: WorkflowSignalId, checkpoint_id: CheckpointId, interrupt_id: WorkflowInterruptId, decision: WorkflowInterruptDecision, ) -> Result<Self, WorkflowWaitError>
Creates a command with a caller-owned idempotency identity.
§Errors
Rejects invalid edited values or rejection explanations.
Trait Implementations§
Source§impl Clone for WorkflowInterruptCommand
impl Clone for WorkflowInterruptCommand
Source§fn clone(&self) -> WorkflowInterruptCommand
fn clone(&self) -> WorkflowInterruptCommand
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 WorkflowInterruptCommand
impl Debug for WorkflowInterruptCommand
Source§impl<'de> Deserialize<'de> for WorkflowInterruptCommand
impl<'de> Deserialize<'de> for WorkflowInterruptCommand
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 WorkflowInterruptCommand
Source§impl PartialEq for WorkflowInterruptCommand
impl PartialEq for WorkflowInterruptCommand
Source§impl Serialize for WorkflowInterruptCommand
impl Serialize for WorkflowInterruptCommand
impl StructuralPartialEq for WorkflowInterruptCommand
Auto Trait Implementations§
impl Freeze for WorkflowInterruptCommand
impl RefUnwindSafe for WorkflowInterruptCommand
impl Send for WorkflowInterruptCommand
impl Sync for WorkflowInterruptCommand
impl Unpin for WorkflowInterruptCommand
impl UnsafeUnpin for WorkflowInterruptCommand
impl UnwindSafe for WorkflowInterruptCommand
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