pub enum RuleCondition {
JsonPath(String),
Equals {
path: String,
value: Value,
},
Comparison {
path: String,
op: CompareOp,
value: Value,
},
NullCheck {
path: String,
is_null: bool,
},
Contains {
path: String,
substring: String,
},
}Expand description
Parsed rule condition — internal representation used by RuleEngine.
Variants§
JsonPath(String)
JSONPath expression that should return true
Equals
Simple equality check (path == value)
Comparison
Simple comparison (path > value, path < value)
NullCheck
Null check (path == null or path != null)
Contains
Contains check (string contains substring)
Trait Implementations§
Source§impl Clone for RuleCondition
impl Clone for RuleCondition
Source§fn clone(&self) -> RuleCondition
fn clone(&self) -> RuleCondition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RuleCondition
impl RefUnwindSafe for RuleCondition
impl Send for RuleCondition
impl Sync for RuleCondition
impl Unpin for RuleCondition
impl UnsafeUnpin for RuleCondition
impl UnwindSafe for RuleCondition
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