pub struct AggregateExpr {
pub function: AggregateFunction,
pub column: Option<usize>,
pub distinct: bool,
}Expand description
Aggregate expression.
Fields§
§function: AggregateFunctionThe aggregate function.
column: Option<usize>Column index to aggregate (None for COUNT(*)).
distinct: boolWhether DISTINCT applies.
Implementations§
Source§impl AggregateExpr
impl AggregateExpr
Sourcepub fn count_star() -> Self
pub fn count_star() -> Self
Create a COUNT(*) expression.
Trait Implementations§
Source§impl Clone for AggregateExpr
impl Clone for AggregateExpr
Source§fn clone(&self) -> AggregateExpr
fn clone(&self) -> AggregateExpr
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 moreAuto Trait Implementations§
impl Freeze for AggregateExpr
impl RefUnwindSafe for AggregateExpr
impl Send for AggregateExpr
impl Sync for AggregateExpr
impl Unpin for AggregateExpr
impl UnwindSafe for AggregateExpr
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