pub enum Expression {
Show 13 variants
Literal {
value: Value,
},
QuantityLiteral {
value: String,
unit: String,
},
TimeLiteral {
timestamp: String,
},
IntervalLiteral {
start: String,
end: String,
},
Variable {
name: String,
},
GroupBy {
variable: String,
collection: Box<Expression>,
filter: Option<Box<Expression>>,
key: Box<Expression>,
condition: Box<Expression>,
},
Binary {
op: BinaryOp,
left: Box<Expression>,
right: Box<Expression>,
},
Unary {
op: UnaryOp,
operand: Box<Expression>,
},
Cast {
operand: Box<Expression>,
target_type: String,
},
Quantifier {
quantifier: Quantifier,
variable: String,
collection: Box<Expression>,
condition: Box<Expression>,
},
MemberAccess {
object: String,
member: String,
},
Aggregation {
function: AggregateFunction,
collection: Box<Expression>,
field: Option<String>,
filter: Option<Box<Expression>>,
},
AggregationComprehension {
function: AggregateFunction,
variable: String,
collection: Box<Expression>,
window: Option<WindowSpec>,
predicate: Box<Expression>,
projection: Box<Expression>,
target_unit: Option<String>,
},
}Variants§
Literal
QuantityLiteral
TimeLiteral
IntervalLiteral
Variable
GroupBy
Fields
§
collection: Box<Expression>§
filter: Option<Box<Expression>>§
key: Box<Expression>§
condition: Box<Expression>Binary
Unary
Cast
Quantifier
MemberAccess
Aggregation
AggregationComprehension
Fields
§
function: AggregateFunction§
collection: Box<Expression>§
window: Option<WindowSpec>§
predicate: Box<Expression>§
projection: Box<Expression>Trait Implementations§
Source§impl Clone for Expression
impl Clone for Expression
Source§fn clone(&self) -> Expression
fn clone(&self) -> Expression
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 Expression
impl Debug for Expression
Source§impl<'de> Deserialize<'de> for Expression
impl<'de> Deserialize<'de> for Expression
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 From<&Expression> for Expression
impl From<&Expression> for Expression
Source§fn from(e: &CoreExpression) -> Self
fn from(e: &CoreExpression) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Expression
impl RefUnwindSafe for Expression
impl Send for Expression
impl Sync for Expression
impl Unpin for Expression
impl UnwindSafe for Expression
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