pub enum AstNode {
MatchAll,
Comparison(ComparisonNode),
LogicalOp(LogicalOpNode),
UnaryOp(UnaryOpNode),
CollectionOp(CollectionOpNode),
GeoExpr(GeoExprNode),
NslookupExpr(NslookupExprNode),
StatsExpr(StatsNode),
QueryWithStats(QueryWithStatsNode),
}Expand description
Top-level AST node types
Variants§
MatchAll
Match all records (empty query)
Comparison(ComparisonNode)
Comparison operation (field op value)
LogicalOp(LogicalOpNode)
Logical operation (AND/OR)
UnaryOp(UnaryOpNode)
Unary operation (NOT)
CollectionOp(CollectionOpNode)
Collection operation (ANY/ALL/NONE)
GeoExpr(GeoExprNode)
GeoIP expression
NslookupExpr(NslookupExprNode)
DNS lookup expression
StatsExpr(StatsNode)
Stats expression only
QueryWithStats(QueryWithStatsNode)
Query with stats
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AstNode
impl<'de> Deserialize<'de> for AstNode
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 AstNode
Auto Trait Implementations§
impl Freeze for AstNode
impl RefUnwindSafe for AstNode
impl Send for AstNode
impl Sync for AstNode
impl Unpin for AstNode
impl UnwindSafe for AstNode
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