pub enum Expr {
And(Vec<Expr>),
Or(Vec<Expr>),
Not(Box<Expr>),
Field(Predicate),
Keyword(StringTest),
}Expand description
A boolean expression over tests on an event.
Variants§
And(Vec<Expr>)
Every operand holds. Empty holds.
Or(Vec<Expr>)
At least one operand holds. Empty does not hold.
Not(Box<Expr>)
The operand does not hold.
Field(Predicate)
A test on the values some paths reach.
Keyword(StringTest)
A string test on any string value anywhere in the event.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Expr
impl<'de> Deserialize<'de> for Expr
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
impl StructuralPartialEq for Expr
Auto Trait Implementations§
impl Forget for Expr
impl Freeze for Expr
impl Move for Expr
impl RefUnwindSafe for Expr
impl Send for Expr
impl Sync for Expr
impl Unpin for Expr
impl UnsafeUnpin for Expr
impl UnwindSafe for Expr
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