pub struct RuleCondition {
pub condition_type: Option<ConditionType>,
pub field: Option<String>,
pub value: Option<String>,
}Expand description
Defines a condition on a field when the rule should be triggered.
Fields§
§condition_type: Option<ConditionType>Type of condition. $When. This condition limits the execution of its children to cases when another field has a particular value, i.e. when the Is value of the referenced field is equal to the given literal value. $WhenNot.This condition limits the execution of its children to cases when another field does not have a particular value, i.e.when the Is value of the referenced field is not equal to the given literal value. $WhenChanged.This condition limits the execution of its children to cases when another field has changed, i.e.when the Is value of the referenced field is not equal to the Was value of that field. $WhenNotChanged.This condition limits the execution of its children to cases when another field has not changed, i.e.when the Is value of the referenced field is equal to the Was value of that field.
field: Option<String>Field that defines condition.
value: Option<String>Value of field to define the condition for rule.
Implementations§
Source§impl RuleCondition
impl RuleCondition
Trait Implementations§
Source§impl Clone for RuleCondition
impl Clone for RuleCondition
Source§fn clone(&self) -> RuleCondition
fn clone(&self) -> RuleCondition
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more