pub enum WorkflowStatus {
Completed,
Suspended {
state_id: Arc<str>,
},
Failed {
state_id: Option<Arc<str>>,
errata: Option<Arc<Errata>>,
},
}Expand description
Workflow execution result used by orchestrators to understand whether evaluation completed, suspended, or failed.
Variants§
Completed
Evaluation ran to completion.
Suspended
Evaluation suspended at a rule identifier; may be resumed.
Failed
Evaluation failed at or near state_id with optional error detail.
Implementations§
Source§impl WorkflowStatus
impl WorkflowStatus
Sourcepub fn is_completed(&self) -> bool
pub fn is_completed(&self) -> bool
Returns true if the workflow completed successfully.
Trait Implementations§
Source§impl Clone for WorkflowStatus
impl Clone for WorkflowStatus
Source§fn clone(&self) -> WorkflowStatus
fn clone(&self) -> WorkflowStatus
Returns a duplicate of the value. Read more
1.0.0 · 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 WorkflowStatus
impl Debug for WorkflowStatus
Source§impl PartialEq for WorkflowStatus
impl PartialEq for WorkflowStatus
impl Eq for WorkflowStatus
impl StructuralPartialEq for WorkflowStatus
Auto Trait Implementations§
impl Freeze for WorkflowStatus
impl RefUnwindSafe for WorkflowStatus
impl Send for WorkflowStatus
impl Sync for WorkflowStatus
impl Unpin for WorkflowStatus
impl UnwindSafe for WorkflowStatus
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.