pub struct AggregateResult {
pub count: Option<i64>,
pub sum: HashMap<String, f64>,
pub avg: HashMap<String, f64>,
pub min: HashMap<String, Value>,
pub max: HashMap<String, Value>,
}Expand description
Result of an aggregation query.
Fields§
§count: Option<i64>Total count (if requested).
sum: HashMap<String, f64>Sum results keyed by column name.
avg: HashMap<String, f64>Average results keyed by column name.
min: HashMap<String, Value>Minimum results keyed by column name.
max: HashMap<String, Value>Maximum results keyed by column name.
Trait Implementations§
Source§impl Clone for AggregateResult
impl Clone for AggregateResult
Source§fn clone(&self) -> AggregateResult
fn clone(&self) -> AggregateResult
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 AggregateResult
impl Debug for AggregateResult
Source§impl Default for AggregateResult
impl Default for AggregateResult
Source§fn default() -> AggregateResult
fn default() -> AggregateResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AggregateResult
impl RefUnwindSafe for AggregateResult
impl Send for AggregateResult
impl Sync for AggregateResult
impl Unpin for AggregateResult
impl UnwindSafe for AggregateResult
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