pub enum ObservationExpression {
Observation(Box<ComparisonExpression>),
And(Box<ObservationExpression>, Box<ObservationExpression>),
Or(Box<ObservationExpression>, Box<ObservationExpression>),
FollowedBy(Box<ObservationExpression>, Box<ObservationExpression>),
Qualified {
expression: Box<ObservationExpression>,
qualifier: Qualifier,
},
}Expand description
Observation-level expression tree.
FOLLOWEDBY/AND/OR combine observations; qualifiers attach to a sub-expression.
Variants§
Observation(Box<ComparisonExpression>)
A single [ comparisonExpr ] observation.
And(Box<ObservationExpression>, Box<ObservationExpression>)
AND of two observation expressions.
Or(Box<ObservationExpression>, Box<ObservationExpression>)
OR of two observation expressions.
FollowedBy(Box<ObservationExpression>, Box<ObservationExpression>)
FOLLOWEDBY: the left expression’s observations precede the right’s.
Qualified
A sub-expression with a postfix Qualifier attached.
Fields
§
expression: Box<ObservationExpression>The qualified sub-expression.
Trait Implementations§
Source§impl Clone for ObservationExpression
impl Clone for ObservationExpression
Source§fn clone(&self) -> ObservationExpression
fn clone(&self) -> ObservationExpression
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ObservationExpression
impl Debug for ObservationExpression
Source§impl<'de> Deserialize<'de> for ObservationExpression
impl<'de> Deserialize<'de> for ObservationExpression
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
Source§impl PartialEq for ObservationExpression
impl PartialEq for ObservationExpression
Source§fn eq(&self, other: &ObservationExpression) -> bool
fn eq(&self, other: &ObservationExpression) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ObservationExpression
impl Serialize for ObservationExpression
impl StructuralPartialEq for ObservationExpression
Auto Trait Implementations§
impl Freeze for ObservationExpression
impl RefUnwindSafe for ObservationExpression
impl Send for ObservationExpression
impl Sync for ObservationExpression
impl Unpin for ObservationExpression
impl UnsafeUnpin for ObservationExpression
impl UnwindSafe for ObservationExpression
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