#[non_exhaustive]pub enum AggregateFunc {
Count,
CountDistinct,
Sum,
Avg,
Min,
Max,
}Expand description
Aggregation functions.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Count
Count rows: COUNT(*)
CountDistinct
Count distinct values: COUNT(DISTINCT field)
Sum
Sum values: SUM(field)
Avg
Average value: AVG(field)
Min
Minimum value: MIN(field)
Max
Maximum value: MAX(field)
Trait Implementations§
Source§impl Clone for AggregateFunc
impl Clone for AggregateFunc
Source§fn clone(&self) -> AggregateFunc
fn clone(&self) -> AggregateFunc
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 AggregateFunc
impl Debug for AggregateFunc
Source§impl PartialEq for AggregateFunc
impl PartialEq for AggregateFunc
impl Copy for AggregateFunc
impl Eq for AggregateFunc
impl StructuralPartialEq for AggregateFunc
Auto Trait Implementations§
impl Freeze for AggregateFunc
impl RefUnwindSafe for AggregateFunc
impl Send for AggregateFunc
impl Sync for AggregateFunc
impl Unpin for AggregateFunc
impl UnwindSafe for AggregateFunc
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