Struct azure_devops_rust_api::processes::models::RuleCondition
source · 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 moresource§impl Debug for RuleCondition
impl Debug for RuleCondition
source§impl Default for RuleCondition
impl Default for RuleCondition
source§fn default() -> RuleCondition
fn default() -> RuleCondition
source§impl<'de> Deserialize<'de> for RuleCondition
impl<'de> Deserialize<'de> for RuleCondition
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>,
source§impl PartialEq for RuleCondition
impl PartialEq for RuleCondition
source§fn eq(&self, other: &RuleCondition) -> bool
fn eq(&self, other: &RuleCondition) -> bool
self
and other
values to be equal, and is used
by ==
.