pub struct AggregateCall {
pub func: AggregateFn,
pub arg: AggregateArg,
pub distinct: bool,
}Expand description
A parsed aggregate call like COUNT(*), SUM(salary), COUNT(DISTINCT dept).
Fields§
§func: AggregateFn§arg: AggregateArg§distinct: boolDISTINCT inside the parens. v1 only allows it on COUNT.
Implementations§
Source§impl AggregateCall
impl AggregateCall
Sourcepub fn display_name(&self) -> String
pub fn display_name(&self) -> String
Canonical display form used to match ORDER BY expressions against aggregate output columns when the user didn’t supply an alias. Mirrors the output-header convention.
Trait Implementations§
Source§impl Clone for AggregateCall
impl Clone for AggregateCall
Source§fn clone(&self) -> AggregateCall
fn clone(&self) -> AggregateCall
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 moreSource§impl Debug for AggregateCall
impl Debug for AggregateCall
Source§impl PartialEq for AggregateCall
impl PartialEq for AggregateCall
Source§fn eq(&self, other: &AggregateCall) -> bool
fn eq(&self, other: &AggregateCall) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for AggregateCall
impl StructuralPartialEq for AggregateCall
Auto Trait Implementations§
impl Freeze for AggregateCall
impl RefUnwindSafe for AggregateCall
impl Send for AggregateCall
impl Sync for AggregateCall
impl Unpin for AggregateCall
impl UnsafeUnpin for AggregateCall
impl UnwindSafe for AggregateCall
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.