#[non_exhaustive]pub enum WorkflowInterruptDecision {
Approve,
Edit {
value: Value,
},
Reject {
reason: String,
},
}Expand description
Human decision applied to one durable interrupt.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Approve
Accept the proposed value without modification.
Edit
Replace the proposed value with a reviewed canonical value.
Reject
Reject the proposal with a bounded operator-facing explanation.
Implementations§
Source§impl WorkflowInterruptDecision
impl WorkflowInterruptDecision
Sourcepub fn edit(value: Value) -> Result<Self, WorkflowWaitError>
pub fn edit(value: Value) -> Result<Self, WorkflowWaitError>
Trait Implementations§
Source§impl Clone for WorkflowInterruptDecision
impl Clone for WorkflowInterruptDecision
Source§fn clone(&self) -> WorkflowInterruptDecision
fn clone(&self) -> WorkflowInterruptDecision
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 WorkflowInterruptDecision
impl Debug for WorkflowInterruptDecision
Source§impl<'de> Deserialize<'de> for WorkflowInterruptDecision
impl<'de> Deserialize<'de> for WorkflowInterruptDecision
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 WorkflowInterruptDecision
impl StructuralPartialEq for WorkflowInterruptDecision
Auto Trait Implementations§
impl Freeze for WorkflowInterruptDecision
impl RefUnwindSafe for WorkflowInterruptDecision
impl Send for WorkflowInterruptDecision
impl Sync for WorkflowInterruptDecision
impl Unpin for WorkflowInterruptDecision
impl UnsafeUnpin for WorkflowInterruptDecision
impl UnwindSafe for WorkflowInterruptDecision
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