pub enum AggregatedValue {
Count(u64),
Sum(Value),
Avg(Value),
Min(Value),
Max(Value),
}Expand description
Result of a single aggregate function applied to a group.
Each variant corresponds to a variant of AggregateFunction. Count is
always a u64; the remaining variants wrap a Value whose concrete
kind matches the aggregated column’s data type.
Variants§
Count(u64)
Number of rows counted by AggregateFunction::Count.
Sum(Value)
Sum produced by AggregateFunction::Sum.
Avg(Value)
Average produced by AggregateFunction::Avg.
Min(Value)
Minimum produced by AggregateFunction::Min.
Max(Value)
Maximum produced by AggregateFunction::Max.
Trait Implementations§
Source§impl CandidType for AggregatedValue
impl CandidType for AggregatedValue
Source§impl Clone for AggregatedValue
impl Clone for AggregatedValue
Source§fn clone(&self) -> AggregatedValue
fn clone(&self) -> AggregatedValue
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 AggregatedValue
impl Debug for AggregatedValue
Source§impl<'de> Deserialize<'de> for AggregatedValue
impl<'de> Deserialize<'de> for AggregatedValue
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AggregatedValue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AggregatedValue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AggregatedValue
impl PartialEq for AggregatedValue
Source§impl Serialize for AggregatedValue
impl Serialize for AggregatedValue
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for AggregatedValue
Auto Trait Implementations§
impl Freeze for AggregatedValue
impl RefUnwindSafe for AggregatedValue
impl Send for AggregatedValue
impl Sync for AggregatedValue
impl Unpin for AggregatedValue
impl UnsafeUnpin for AggregatedValue
impl UnwindSafe for AggregatedValue
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