pub struct DownloadsMetric {
pub monthly: u64,
pub total: u64,
}Expand description
Counts for project downloads
Fields§
§monthly: u64Total downloads over the past month
total: u64Total downloads all time
Trait Implementations§
Source§impl Debug for DownloadsMetric
impl Debug for DownloadsMetric
Source§impl Default for DownloadsMetric
impl Default for DownloadsMetric
Source§fn default() -> DownloadsMetric
fn default() -> DownloadsMetric
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DownloadsMetric
impl<'de> Deserialize<'de> for DownloadsMetric
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 Ord for DownloadsMetric
impl Ord for DownloadsMetric
Source§fn cmp(&self, other: &DownloadsMetric) -> Ordering
fn cmp(&self, other: &DownloadsMetric) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DownloadsMetric
impl PartialEq for DownloadsMetric
Source§impl PartialOrd for DownloadsMetric
impl PartialOrd for DownloadsMetric
Source§impl Serialize for DownloadsMetric
impl Serialize for DownloadsMetric
impl Eq for DownloadsMetric
impl StructuralPartialEq for DownloadsMetric
Auto Trait Implementations§
impl Freeze for DownloadsMetric
impl RefUnwindSafe for DownloadsMetric
impl Send for DownloadsMetric
impl Sync for DownloadsMetric
impl Unpin for DownloadsMetric
impl UnwindSafe for DownloadsMetric
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.