pub struct PackageStats {
pub package_id: String,
pub version: String,
pub downloads: u64,
pub uploads: u64,
pub accesses: u64,
pub bandwidth_bytes: u64,
pub avg_download_time: f64,
pub storage_bytes: u64,
pub unique_users: usize,
pub errors: u64,
pub last_access: Option<DateTime<Utc>>,
}Expand description
Package usage statistics
Fields§
§package_id: StringPackage ID
version: StringPackage version
downloads: u64Total downloads
uploads: u64Total uploads
accesses: u64Total accesses
bandwidth_bytes: u64Total bandwidth (bytes)
avg_download_time: f64Average download time (seconds)
storage_bytes: u64Total storage used (bytes)
unique_users: usizeUnique users
errors: u64Error count
last_access: Option<DateTime<Utc>>Last access timestamp
Trait Implementations§
Source§impl Clone for PackageStats
impl Clone for PackageStats
Source§fn clone(&self) -> PackageStats
fn clone(&self) -> PackageStats
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 PackageStats
impl Debug for PackageStats
Source§impl Default for PackageStats
impl Default for PackageStats
Source§fn default() -> PackageStats
fn default() -> PackageStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PackageStats
impl<'de> Deserialize<'de> for PackageStats
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
Auto Trait Implementations§
impl Freeze for PackageStats
impl RefUnwindSafe for PackageStats
impl Send for PackageStats
impl Sync for PackageStats
impl Unpin for PackageStats
impl UnsafeUnpin for PackageStats
impl UnwindSafe for PackageStats
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more