pub enum Conditions {
And {
conditions: Vec<Conditions>,
},
Or {
conditions: Vec<Conditions>,
},
Not {
condition: Box<Conditions>,
},
Field(FieldCondition),
}Expand description
Composable condition tree. Evaluated recursively.
Variants§
And
Fields
§
conditions: Vec<Conditions>Or
Fields
§
conditions: Vec<Conditions>Not
Fields
§
condition: Box<Conditions>Field(FieldCondition)
Implementations§
Source§impl Conditions
impl Conditions
Sourcepub fn evaluate(&self, msg: &dyn MessageView) -> bool
pub fn evaluate(&self, msg: &dyn MessageView) -> bool
Recursively evaluate the condition tree against a message.
Trait Implementations§
Source§impl Clone for Conditions
impl Clone for Conditions
Source§fn clone(&self) -> Conditions
fn clone(&self) -> Conditions
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 moreSource§impl Debug for Conditions
impl Debug for Conditions
Source§impl<'de> Deserialize<'de> for Conditions
impl<'de> Deserialize<'de> for Conditions
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 Conditions
impl RefUnwindSafe for Conditions
impl Send for Conditions
impl Sync for Conditions
impl Unpin for Conditions
impl UnsafeUnpin for Conditions
impl UnwindSafe for Conditions
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