pub struct ClaimRelationRecord {
pub relation_uuid: Uuid,
pub source_assertion_uuid: Uuid,
pub target_assertion_uuid: Uuid,
pub kind: ClaimRelationKind,
pub creator_uuid: Uuid,
pub provenance_uuid: Uuid,
pub recorded_at: i64,
}Expand description
One immutable explicit relation between two existing assertions.
Fields§
§relation_uuid: UuidStable identity for exact replay.
source_assertion_uuid: UuidSubject claim.
target_assertion_uuid: UuidRelated claim.
kind: ClaimRelationKindClosed relationship semantics.
creator_uuid: UuidCreating analyst/agent metadata.
provenance_uuid: UuidProducing provenance event.
recorded_at: i64UTC microseconds at creation.
Implementations§
Source§impl ClaimRelationRecord
impl ClaimRelationRecord
Sourcepub fn fingerprint(&self) -> Result<[u8; 32], KnowledgeError>
pub fn fingerprint(&self) -> Result<[u8; 32], KnowledgeError>
Commit the direction, meaning and original producer of a claim relation.
Trait Implementations§
Source§impl Clone for ClaimRelationRecord
impl Clone for ClaimRelationRecord
Source§impl Debug for ClaimRelationRecord
impl Debug for ClaimRelationRecord
Source§impl<'de> Deserialize<'de> for ClaimRelationRecord
impl<'de> Deserialize<'de> for ClaimRelationRecord
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
impl Eq for ClaimRelationRecord
Source§impl PartialEq for ClaimRelationRecord
impl PartialEq for ClaimRelationRecord
Source§impl Serialize for ClaimRelationRecord
impl Serialize for ClaimRelationRecord
impl StructuralPartialEq for ClaimRelationRecord
Auto Trait Implementations§
impl Freeze for ClaimRelationRecord
impl RefUnwindSafe for ClaimRelationRecord
impl Send for ClaimRelationRecord
impl Sync for ClaimRelationRecord
impl Unpin for ClaimRelationRecord
impl UnsafeUnpin for ClaimRelationRecord
impl UnwindSafe for ClaimRelationRecord
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.