Struct influxdb2::models::ast::expression::Expression
source · [−]pub struct Expression {Show 23 fields
pub type: Option<String>,
pub elements: Vec<DictItem>,
pub params: Vec<Property>,
pub body: Option<Node>,
pub operator: Option<String>,
pub left: Option<Box<Expression>>,
pub right: Option<Box<Expression>>,
pub callee: Option<Box<Expression>>,
pub arguments: Vec<Expression>,
pub test: Option<Box<Expression>>,
pub alternate: Option<Box<Expression>>,
pub consequent: Option<Box<Expression>>,
pub object: Option<Box<Expression>>,
pub property: Option<Box<PropertyKey>>,
pub array: Option<Box<Expression>>,
pub index: Option<Box<Expression>>,
pub properties: Vec<Property>,
pub expression: Option<Box<Expression>>,
pub argument: Option<Box<Expression>>,
pub call: Option<CallExpression>,
pub value: Option<String>,
pub values: Vec<Duration>,
pub name: Option<String>,
}Expand description
Expression AST
Fields
type: Option<String>Type of AST node
elements: Vec<DictItem>Elements of the dictionary
params: Vec<Property>Function parameters
body: Option<Node>Node
operator: Option<String>Operator
left: Option<Box<Expression>>Left leaf
right: Option<Box<Expression>>Right leaf
callee: Option<Box<Expression>>Parent Expression
arguments: Vec<Expression>Function arguments
test: Option<Box<Expression>>Test Expr
alternate: Option<Box<Expression>>Alternate Expr
consequent: Option<Box<Expression>>Consequent Expr
object: Option<Box<Expression>>Object Expr
property: Option<Box<PropertyKey>>PropertyKey Expr
array: Option<Box<Expression>>Array Expr
index: Option<Box<Expression>>Index Expr
properties: Vec<Property>Properties
expression: Option<Box<Expression>>Expression
argument: Option<Box<Expression>>Argument
call: Option<CallExpression>Call Expr
value: Option<String>Expression Value
values: Vec<Duration>Duration values
name: Option<String>Expression Name
Implementations
sourceimpl Expression
impl Expression
Trait Implementations
sourceimpl Clone for Expression
impl Clone for Expression
sourcefn clone(&self) -> Expression
fn clone(&self) -> Expression
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for Expression
impl Debug for Expression
sourceimpl Default for Expression
impl Default for Expression
sourcefn default() -> Expression
fn default() -> Expression
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for Expression
impl<'de> Deserialize<'de> for Expression
sourcefn 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
sourceimpl PartialEq<Expression> for Expression
impl PartialEq<Expression> for Expression
sourcefn eq(&self, other: &Expression) -> bool
fn eq(&self, other: &Expression) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourceimpl Serialize for Expression
impl Serialize for Expression
impl StructuralPartialEq for Expression
Auto Trait Implementations
impl RefUnwindSafe for Expression
impl Send for Expression
impl Sync for Expression
impl Unpin for Expression
impl UnwindSafe for Expression
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more