pub struct TrustScore {
pub score: f64,
pub level: String,
pub reasons: Vec<String>,
pub blocking: bool,
pub signals: TrustSignals,
pub data_quality: DataQuality,
pub safe_to_use_for: Vec<String>,
pub avoid_for: Vec<String>,
}Expand description
Rolled-up state trust score for the current ASD workspace.
Fields§
§score: f64Normalised trust value in [0.0, 1.0], rounded to 2 d.p.
level: StringHuman label: “high” | “medium” | “low” | “blocked”.
reasons: Vec<String>Sorted list of short reason tokens (additive, both positive & negative).
blocking: boolTrue when one or more blocking conditions prevent reliable use.
signals: TrustSignalsRaw signal values (useful for history snapshots and debugging).
data_quality: DataQualityDistinguishes intentional clean-room DB from unexpected state degradation.
safe_to_use_for: Vec<String>Task categories this DB state is reliable enough to support.
Values: "search" | "impact" | "change-planning" | "audit" | "compliance"
avoid_for: Vec<String>Task categories where this DB state should NOT be relied upon.
Values: same set as safe_to_use_for.
Implementations§
Trait Implementations§
Source§impl Clone for TrustScore
impl Clone for TrustScore
Source§impl Debug for TrustScore
impl Debug for TrustScore
Source§impl<'de> Deserialize<'de> for TrustScore
impl<'de> Deserialize<'de> for TrustScore
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 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