pub enum Expression {
Show 14 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>,
},
RoleReference {
role: 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>RoleReference
Contextual role<SymbolRef> leaf (ADR-013 §2). Opaque until
application policy evaluation resolves it.
Trait Implementations§
Source§impl Clone for Expression
impl Clone for Expression
Source§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 Forget for Expression
impl Freeze for Expressionwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
*const Expression is !null: Freeze,
PhantomData<Expression>: Freeze,
impl Move for Expression
impl RefUnwindSafe for Expression
impl Send for Expression
impl Sync for Expression
impl Unpin for Expression
impl UnsafeUnpin for Expressionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
*const Expression is !null: UnsafeUnpin,
PhantomData<Expression>: UnsafeUnpin,
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