pub struct UsageStatEntry {
pub name: String,
pub hits: u64,
}Expand description
One (name, hits) bucket of a UsageStats leaderboard.
Fields§
§name: StringBucket label: crate name, target triple, or CLI version.
hits: u64Sample-scaled hit count for the bucket.
Trait Implementations§
Source§impl Clone for UsageStatEntry
impl Clone for UsageStatEntry
Source§impl ComposeSchema for UsageStatEntry
impl ComposeSchema for UsageStatEntry
Source§impl Debug for UsageStatEntry
impl Debug for UsageStatEntry
Source§impl<'de> Deserialize<'de> for UsageStatEntry
impl<'de> Deserialize<'de> for UsageStatEntry
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
impl Eq for UsageStatEntry
Source§impl PartialEq for UsageStatEntry
impl PartialEq for UsageStatEntry
Source§impl Serialize for UsageStatEntry
impl Serialize for UsageStatEntry
impl StructuralPartialEq for UsageStatEntry
Auto Trait Implementations§
impl Freeze for UsageStatEntry
impl RefUnwindSafe for UsageStatEntry
impl Send for UsageStatEntry
impl Sync for UsageStatEntry
impl Unpin for UsageStatEntry
impl UnsafeUnpin for UsageStatEntry
impl UnwindSafe for UsageStatEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.