Enum rorm::representations::FFIAggregation
source · #[repr(C)]
pub enum FFIAggregation {
Avg,
Count,
Sum,
Max,
Min,
}
Expand description
Representation of an aggregator function
Variants§
Avg
Returns the average value of all non-null values. The result of avg is a floating point value, except all input values are null, than the result will also be null.
Count
Returns the count of the number of times that the column is not null.
Sum
Returns the summary off all non-null values in the group. If there are only null values in the group, this function will return null.
Max
Returns the maximum value of all values in the group. If there are only null values in the group, this function will return null.
Min
Returns the minimum value of all values in the group. If there are only null values in the group, this function will return null.
Trait Implementations§
source§impl Clone for FFIAggregation
impl Clone for FFIAggregation
source§fn clone(&self) -> FFIAggregation
fn clone(&self) -> FFIAggregation
Returns a copy 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 From<FFIAggregation> for SelectAggregator
impl From<FFIAggregation> for SelectAggregator
source§fn from(v: FFIAggregation) -> Self
fn from(v: FFIAggregation) -> Self
Converts to this type from the input type.