pub struct TrustScore {
pub did: String,
pub score: f64,
pub total_events: u64,
pub level: TrustLevel,
pub events: Vec<TrustEventRecord>,
pub updated: String,
}Expand description
Trust score record for an agent
Fields§
§did: StringAgent’s DID
score: f64Current trust score (0.0 to 100.0, clamped)
total_events: u64Total events recorded
level: TrustLevelTrust level derived from score
events: Vec<TrustEventRecord>Event history
updated: StringLast updated timestamp
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 (const: unstable) · 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
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