Enum query_projector_traits::aggregates::SimpleAggregationOp
[−]
[src]
pub enum SimpleAggregationOp { Avg, Count, Max, Min, Sum, }
Variants
Avg
Count
Max
Min
Sum
Methods
impl SimpleAggregationOp
[src]
pub fn to_sql(&self) -> &'static str
[src]
pub fn is_applicable_to_types(
&self,
possibilities: ValueTypeSet
) -> Result<ValueType>
[src]
&self,
possibilities: ValueTypeSet
) -> Result<ValueType>
With knowledge of the types to which a variable might be bound,
return a Result
to determine whether this aggregation is suitable.
For example, it's valid to take the Avg
of {Double, Long}
, invalid
to take Sum
of {Instant}
, valid to take (lexicographic) Max
of {String}
,
but invalid to take Max
of {Uuid, String}
.
The returned type is the type of the result of the aggregation.
Trait Implementations
impl Clone for SimpleAggregationOp
[src]
fn clone(&self) -> SimpleAggregationOp
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for SimpleAggregationOp
[src]
impl Debug for SimpleAggregationOp
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more