pub struct DownloadStat {
pub content_id: String,
pub name: String,
pub size_bytes: u64,
pub speed_bps: f64,
pub do_percentage: f64,
pub duration_secs: f64,
pub success: bool,
pub timestamp: Option<String>,
pub timestamp_epoch: Option<i64>,
}Expand description
Download statistics for a content download event.
Fields§
§content_id: StringName or ID of the content
name: StringDisplay name
size_bytes: u64Total size in bytes
speed_bps: f64Download speed in bytes per second
do_percentage: f64Percentage downloaded via Delivery Optimization
duration_secs: f64Download duration in seconds
success: boolWhether download succeeded
timestamp: Option<String>Timestamp
timestamp_epoch: Option<i64>Timestamp as milliseconds since Unix epoch (pre-computed for fast frontend sorting)
Trait Implementations§
Source§impl Clone for DownloadStat
impl Clone for DownloadStat
Source§fn clone(&self) -> DownloadStat
fn clone(&self) -> DownloadStat
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 DownloadStat
impl Debug for DownloadStat
Source§impl<'de> Deserialize<'de> for DownloadStat
impl<'de> Deserialize<'de> for DownloadStat
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 DownloadStat
impl RefUnwindSafe for DownloadStat
impl Send for DownloadStat
impl Sync for DownloadStat
impl Unpin for DownloadStat
impl UnsafeUnpin for DownloadStat
impl UnwindSafe for DownloadStat
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