pub struct StatUpdate {
pub metric: String,
pub value: f64,
pub entity: Option<String>,
}Expand description
Individual statistics update.
Fields§
§metric: StringMetric name.
value: f64Metric value.
entity: Option<String>Associated entity (e.g., peer ID, content CID).
Implementations§
Trait Implementations§
Source§impl Clone for StatUpdate
impl Clone for StatUpdate
Source§fn clone(&self) -> StatUpdate
fn clone(&self) -> StatUpdate
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 StatUpdate
impl Debug for StatUpdate
Source§impl<'de> Deserialize<'de> for StatUpdate
impl<'de> Deserialize<'de> for StatUpdate
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 StatUpdate
impl RefUnwindSafe for StatUpdate
impl Send for StatUpdate
impl Sync for StatUpdate
impl Unpin for StatUpdate
impl UnwindSafe for StatUpdate
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