pub enum AggregationResult {
Number(f64),
Text(String),
Boolean(bool),
CountMap(HashMap<String, usize>),
None,
}Expand description
Result of an aggregation operation
Variants§
Number(f64)
Numeric result
Text(String)
String result
Boolean(bool)
Boolean result
CountMap(HashMap<String, usize>)
Map of category counts
None
No result (empty data)
Implementations§
Trait Implementations§
Source§impl Clone for AggregationResult
impl Clone for AggregationResult
Source§fn clone(&self) -> AggregationResult
fn clone(&self) -> AggregationResult
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 AggregationResult
impl Debug for AggregationResult
Source§impl<'de> Deserialize<'de> for AggregationResult
impl<'de> Deserialize<'de> for AggregationResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AggregationResult
impl RefUnwindSafe for AggregationResult
impl Send for AggregationResult
impl Sync for AggregationResult
impl Unpin for AggregationResult
impl UnwindSafe for AggregationResult
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