pub struct ContentStats {
pub content_id: Uuid,
pub download_count: u64,
pub bandwidth_served: Bytes,
pub active_seeders: u64,
pub total_earnings: Points,
pub views: u64,
pub unique_downloaders: u64,
pub average_rating: Option<f64>,
pub updated_at: DateTime<Utc>,
}Expand description
Content statistics for creators.
Fields§
§content_id: UuidContent ID.
download_count: u64Total downloads.
bandwidth_served: BytesTotal bandwidth served (bytes).
active_seeders: u64Number of active seeders.
total_earnings: PointsTotal earnings from this content.
views: u64Views count.
unique_downloaders: u64Unique downloaders.
average_rating: Option<f64>Average rating (0.0-5.0).
updated_at: DateTime<Utc>Statistics last updated.
Trait Implementations§
Source§impl Clone for ContentStats
impl Clone for ContentStats
Source§fn clone(&self) -> ContentStats
fn clone(&self) -> ContentStats
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 ContentStats
impl Debug for ContentStats
Source§impl<'de> Deserialize<'de> for ContentStats
impl<'de> Deserialize<'de> for ContentStats
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 ContentStats
impl RefUnwindSafe for ContentStats
impl Send for ContentStats
impl Sync for ContentStats
impl Unpin for ContentStats
impl UnwindSafe for ContentStats
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