pub struct TrustScore {
pub trust_score: f32,
pub defect_density: f32,
pub risk_multiplier: f32,
pub recency_factor: f32,
pub tier: TrustTier,
}Expand description
Computed trust score for a node at a given point in time.
Fields§
§trust_score: f32Trust score in [0.05, 1.0] — lower means riskier.
defect_density: f32Raw defect density: defects / total_learn_events.
risk_multiplier: f32Risk multiplier in [1.0, RISK_MULTIPLIER_CAP].
recency_factor: f32Recency factor in [0.0, 1.0] — exponential decay since last defect.
tier: TrustTierRisk tier classification.
Trait Implementations§
Source§impl Clone for TrustScore
impl Clone for TrustScore
Source§fn clone(&self) -> TrustScore
fn clone(&self) -> TrustScore
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 TrustScore
impl Debug for TrustScore
Auto Trait Implementations§
impl Freeze for TrustScore
impl RefUnwindSafe for TrustScore
impl Send for TrustScore
impl Sync for TrustScore
impl Unpin for TrustScore
impl UnsafeUnpin for TrustScore
impl UnwindSafe for TrustScore
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