pub struct Statistics {
pub average: Option<f64>,
pub count: Option<i64>,
pub maximum: Option<f64>,
pub minimum: Option<f64>,
pub std_deviation: Option<f64>,
pub sum: Option<f64>,
pub sum_of_squares: Option<f64>,
pub variance: Option<f64>,
}Expand description
A map of key-value pairs for all supported statistics. Currently, only count is supported.
Fields§
§average: Option<f64>The average of the aggregated field values.
count: Option<i64>The count of things that match the query.
maximum: Option<f64>The maximum aggregated field value.
minimum: Option<f64>The minimum aggregated field value.
std_deviation: Option<f64>The standard deviation of the aggregated field values.
sum: Option<f64>The sum of the aggregated field values.
sum_of_squares: Option<f64>The sum of the squares of the aggregated field values.
variance: Option<f64>The variance of the aggregated field values.
Trait Implementations§
Source§impl Clone for Statistics
impl Clone for Statistics
Source§fn clone(&self) -> Statistics
fn clone(&self) -> Statistics
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 Statistics
impl Debug for Statistics
Source§impl Default for Statistics
impl Default for Statistics
Source§fn default() -> Statistics
fn default() -> Statistics
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Statistics
impl<'de> Deserialize<'de> for Statistics
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
Source§impl PartialEq for Statistics
impl PartialEq for Statistics
impl StructuralPartialEq for Statistics
Auto Trait Implementations§
impl Freeze for Statistics
impl RefUnwindSafe for Statistics
impl Send for Statistics
impl Sync for Statistics
impl Unpin for Statistics
impl UnwindSafe for Statistics
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