#[non_exhaustive]pub enum Selection {
Ran,
SkippedByCondition,
ConditionFailed(Error),
SkippedByRollout,
}Expand description
Why a workflow did or did not run.
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.
Ran
The workflow was selected and ran.
SkippedByCondition
Its condition was false.
ConditionFailed(Error)
Its condition failed to evaluate, which counts as false.
SkippedByRollout
The message’s routing bucket is outside its rollout.
Trait Implementations§
Source§impl Serialize for Selection
Writes the selection string of a workflow’s record: ran,
skipped_by_condition, condition_failed or skipped_by_rollout. The
error of a failed condition is a key of the record, which
WorkflowRecord writes.
impl Serialize for Selection
Writes the selection string of a workflow’s record: ran,
skipped_by_condition, condition_failed or skipped_by_rollout. The
error of a failed condition is a key of the record, which
WorkflowRecord writes.
Auto Trait Implementations§
impl !RefUnwindSafe for Selection
impl !UnwindSafe for Selection
impl Freeze for Selection
impl Send for Selection
impl Sync for Selection
impl Unpin for Selection
impl UnsafeUnpin for Selection
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