pub struct TrustGradient {
pub id: ContractId,
pub agent_id: String,
pub action: String,
pub trust_factor: f64,
pub confidence: f64,
pub monitoring_level: MonitoringLevel,
pub auto_revoke_threshold: f64,
pub contributing_factors: Vec<TrustFactor>,
pub evaluated_at: DateTime<Utc>,
}Expand description
A trust-augmented policy evaluation.
Fields§
§id: ContractIdUnique identifier.
agent_id: StringThe agent being evaluated.
action: StringThe action being evaluated.
trust_factor: f64Trust factor (0.0-1.0).
confidence: f64Confidence in the trust assessment (0.0-1.0).
monitoring_level: MonitoringLevelMonitoring level applied.
auto_revoke_threshold: f64Trust score threshold for auto-revocation.
contributing_factors: Vec<TrustFactor>Factors contributing to the trust score.
evaluated_at: DateTime<Utc>When this evaluation was made.
Trait Implementations§
Source§impl Clone for TrustGradient
impl Clone for TrustGradient
Source§fn clone(&self) -> TrustGradient
fn clone(&self) -> TrustGradient
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 TrustGradient
impl Debug for TrustGradient
Source§impl<'de> Deserialize<'de> for TrustGradient
impl<'de> Deserialize<'de> for TrustGradient
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 TrustGradient
impl RefUnwindSafe for TrustGradient
impl Send for TrustGradient
impl Sync for TrustGradient
impl Unpin for TrustGradient
impl UnsafeUnpin for TrustGradient
impl UnwindSafe for TrustGradient
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