pub enum StepCondition {
All(Vec<StepCondition>),
Any(Vec<StepCondition>),
None(Vec<StepCondition>),
OneOf(Vec<StepCondition>),
Not(Box<StepCondition>),
Comparison(FieldComparison),
}Expand description
A condition that determines whether a workflow step should execute.
Variants§
All(Vec<StepCondition>)
All sub-conditions must be true (AND).
Any(Vec<StepCondition>)
At least one sub-condition must be true (OR).
None(Vec<StepCondition>)
No sub-conditions may be true (NOR).
OneOf(Vec<StepCondition>)
Exactly one sub-condition must be true (XOR).
Not(Box<StepCondition>)
Negation of a single condition (NOT).
Comparison(FieldComparison)
A leaf comparison against a field in workflow data.
Trait Implementations§
Source§impl Clone for StepCondition
impl Clone for StepCondition
Source§fn clone(&self) -> StepCondition
fn clone(&self) -> StepCondition
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 StepCondition
impl Debug for StepCondition
Source§impl<'de> Deserialize<'de> for StepCondition
impl<'de> Deserialize<'de> for StepCondition
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
Source§impl PartialEq for StepCondition
impl PartialEq for StepCondition
Source§fn eq(&self, other: &StepCondition) -> bool
fn eq(&self, other: &StepCondition) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StepCondition
impl Serialize for StepCondition
impl StructuralPartialEq for StepCondition
Auto Trait Implementations§
impl Freeze for StepCondition
impl RefUnwindSafe for StepCondition
impl Send for StepCondition
impl Sync for StepCondition
impl Unpin for StepCondition
impl UnsafeUnpin for StepCondition
impl UnwindSafe for StepCondition
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