pub struct TrustObservation {
pub observer_id: Uuid,
pub subject_id: Uuid,
pub dimension: TrustDimension,
pub score: f64,
pub context: String,
pub timestamp: DateTime<Utc>,
}Expand description
A trust observation to be recorded
Fields§
§observer_id: UuidThe observer’s LCT ID
subject_id: UuidThe observed entity’s LCT ID
dimension: TrustDimensionThe dimension being observed
score: f64The observed score (0.0 to 1.0)
context: StringContext/reason for the observation
timestamp: DateTime<Utc>Timestamp of the observation
Implementations§
Trait Implementations§
Source§impl Clone for TrustObservation
impl Clone for TrustObservation
Source§impl Debug for TrustObservation
impl Debug for TrustObservation
Source§impl<'de> Deserialize<'de> for TrustObservation
impl<'de> Deserialize<'de> for TrustObservation
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 TrustObservation
impl RefUnwindSafe for TrustObservation
impl Send for TrustObservation
impl Sync for TrustObservation
impl Unpin for TrustObservation
impl UnsafeUnpin for TrustObservation
impl UnwindSafe for TrustObservation
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