pub struct StatsTopItem {
pub key: String,
pub count: f64,
pub count_min: f64,
pub relays: u32,
}Expand description
One entry of a StatsTopList. Counts are estimates summed over Relays and windows.
Fields§
§key: StringThe name.
count: f64Upper bound of the count.
count_min: f64Lower bound of the count.
relays: u32How many Relays reported it.
Trait Implementations§
Source§impl Clone for StatsTopItem
impl Clone for StatsTopItem
Source§fn clone(&self) -> StatsTopItem
fn clone(&self) -> StatsTopItem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StatsTopItem
impl Debug for StatsTopItem
Source§impl<'de> Deserialize<'de> for StatsTopItem
impl<'de> Deserialize<'de> for StatsTopItem
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 StatsTopItem
impl PartialEq for StatsTopItem
Source§impl Serialize for StatsTopItem
impl Serialize for StatsTopItem
impl StructuralPartialEq for StatsTopItem
Auto Trait Implementations§
impl Freeze for StatsTopItem
impl RefUnwindSafe for StatsTopItem
impl Send for StatsTopItem
impl Sync for StatsTopItem
impl Unpin for StatsTopItem
impl UnsafeUnpin for StatsTopItem
impl UnwindSafe for StatsTopItem
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