pub enum GroupByItem {
Column(String),
Position(usize),
Expression {
expr: Expression,
display_name: String,
},
}Expand description
Represents a GROUP BY item - either a column reference or an expression
Variants§
Column(String)
Simple column reference by name
Position(usize)
Positional reference like GROUP BY 1
Expression
Complex expression that needs to be evaluated
Fields
§
expr: ExpressionThe expression to evaluate
Trait Implementations§
Source§impl Clone for GroupByItem
impl Clone for GroupByItem
Source§fn clone(&self) -> GroupByItem
fn clone(&self) -> GroupByItem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GroupByItem
impl RefUnwindSafe for GroupByItem
impl Send for GroupByItem
impl Sync for GroupByItem
impl Unpin for GroupByItem
impl UnsafeUnpin for GroupByItem
impl UnwindSafe for GroupByItem
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