pub enum Condition {
GreaterThan {
value: f64,
},
LessThan {
value: f64,
},
Equals {
value: f64,
tolerance: Option<f64>,
},
InRange {
min: f64,
max: f64,
},
Expression {
expr: String,
},
And {
conditions: Vec<Condition>,
},
Or {
conditions: Vec<Condition>,
},
Not {
condition: Box<Condition>,
},
}Expand description
Condition for conditional transforms
Variants§
GreaterThan
Value is greater than threshold
LessThan
Value is less than threshold
Equals
Value equals (within tolerance)
InRange
Value is in range
Expression
Expression evaluates to true
And
Logical AND of conditions
Or
Logical OR of conditions
Not
Logical NOT
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Condition
impl<'de> Deserialize<'de> for Condition
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
Auto Trait Implementations§
impl Freeze for Condition
impl RefUnwindSafe for Condition
impl Send for Condition
impl Sync for Condition
impl Unpin for Condition
impl UnsafeUnpin for Condition
impl UnwindSafe for Condition
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