Struct glean::DistributionData
source · pub struct DistributionData {
pub values: HashMap<i64, i64>,
pub sum: i64,
pub count: i64,
}
Expand description
A snapshot of all buckets and the accumulated sum of a distribution.
Fields§
§values: HashMap<i64, i64>
A map containig the bucket index mapped to the accumulated count.
This can contain buckets with a count of 0
.
sum: i64
The accumulated sum of all the samples in the distribution.
count: i64
The total number of entries in the distribution.
Trait Implementations§
source§impl Debug for DistributionData
impl Debug for DistributionData
source§impl PartialEq for DistributionData
impl PartialEq for DistributionData
source§impl Serialize for DistributionData
impl Serialize for DistributionData
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 DistributionData
Auto Trait Implementations§
impl Freeze for DistributionData
impl RefUnwindSafe for DistributionData
impl Send for DistributionData
impl Sync for DistributionData
impl Unpin for DistributionData
impl UnwindSafe for DistributionData
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