pub enum FindExpression {
Variable(DotPathVar),
Aggregation {
func: AggregationFunction,
var: DotPathVar,
distinct: bool,
},
}Expand description
Represents an expression in the FIND clause. Can be either a simple variable or an aggregation function with alias.
Variants§
Variable(DotPathVar)
A dot notation path (e.g., ?drug.name, ?drug.attributes.risk_level)
Aggregation
An aggregation function (e.g., COUNT(?drug))
Fields
§
func: AggregationFunctionThe aggregation function to apply
§
var: DotPathVarThe variable to aggregate
Trait Implementations§
Source§impl Clone for FindExpression
impl Clone for FindExpression
Source§fn clone(&self) -> FindExpression
fn clone(&self) -> FindExpression
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 FindExpression
impl Debug for FindExpression
Source§impl<'de> Deserialize<'de> for FindExpression
impl<'de> Deserialize<'de> for FindExpression
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 FindExpression
impl PartialEq for FindExpression
Source§impl Serialize for FindExpression
impl Serialize for FindExpression
impl Eq for FindExpression
impl StructuralPartialEq for FindExpression
Auto Trait Implementations§
impl Freeze for FindExpression
impl RefUnwindSafe for FindExpression
impl Send for FindExpression
impl Sync for FindExpression
impl Unpin for FindExpression
impl UnwindSafe for FindExpression
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