pub struct TrustEntry {
pub defect_count: u32,
pub false_alarm_count: u32,
pub partial_count: u32,
pub last_defect_timestamp: f64,
pub first_defect_timestamp: f64,
pub total_learn_events: u32,
}Expand description
Raw defect event counters for a single node, stored in the ledger.
Fields§
§defect_count: u32Number of confirmed defects (from learn("correct")).
false_alarm_count: u32Number of false alarms (from learn("wrong")).
partial_count: u32Number of partial matches (from learn("partial")).
last_defect_timestamp: f64Unix timestamp (seconds) of the most recent confirmed defect.
first_defect_timestamp: f64Unix timestamp (seconds) of the first confirmed defect.
total_learn_events: u32Total learn events (defect + false_alarm + partial).
Trait Implementations§
Source§impl Clone for TrustEntry
impl Clone for TrustEntry
Source§fn clone(&self) -> TrustEntry
fn clone(&self) -> TrustEntry
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 TrustEntry
impl Debug for TrustEntry
Source§impl<'de> Deserialize<'de> for TrustEntry
impl<'de> Deserialize<'de> for TrustEntry
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 TrustEntry
impl RefUnwindSafe for TrustEntry
impl Send for TrustEntry
impl Sync for TrustEntry
impl Unpin for TrustEntry
impl UnsafeUnpin for TrustEntry
impl UnwindSafe for TrustEntry
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