pub struct ContentEarnings {
pub content_cid: ContentCid,
pub points_earned: Points,
pub bandwidth_served: Bytes,
pub chunks_served: u64,
}Expand description
Earnings for a specific content item.
Fields§
§content_cid: ContentCidContent CID.
points_earned: PointsPoints earned from this content.
bandwidth_served: BytesBandwidth served for this content (bytes).
chunks_served: u64Number of chunks served.
Trait Implementations§
Source§impl Clone for ContentEarnings
impl Clone for ContentEarnings
Source§fn clone(&self) -> ContentEarnings
fn clone(&self) -> ContentEarnings
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 ContentEarnings
impl Debug for ContentEarnings
Source§impl<'de> Deserialize<'de> for ContentEarnings
impl<'de> Deserialize<'de> for ContentEarnings
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 ContentEarnings
impl RefUnwindSafe for ContentEarnings
impl Send for ContentEarnings
impl Sync for ContentEarnings
impl Unpin for ContentEarnings
impl UnwindSafe for ContentEarnings
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