pub struct ClaimEvent {Show 13 fields
pub event_id: ClaimEventId,
pub claim_id: ClaimId,
pub kind: ClaimEventKind,
pub subject: EntityRef,
pub predicate: Predicate,
pub value: Option<ClaimValue>,
pub confidence: Confidence,
pub authority: Authority,
pub ttl: Ttl,
pub provenance: Provenance,
pub evidence: Vec<Evidence>,
pub observed_at: Option<TimestampMillis>,
pub valid_from: Option<TimestampMillis>,
}Fields§
§event_id: ClaimEventId§claim_id: ClaimId§kind: ClaimEventKind§subject: EntityRef§predicate: Predicate§value: Option<ClaimValue>§confidence: Confidence§ttl: Ttl§provenance: Provenance§evidence: Vec<Evidence>§observed_at: Option<TimestampMillis>§valid_from: Option<TimestampMillis>Implementations§
Source§impl ClaimEvent
impl ClaimEvent
Sourcepub fn dependency_edges(&self) -> Vec<ClaimId>
pub fn dependency_edges(&self) -> Vec<ClaimId>
The claim ids this event was derived from — its EvidenceKind::DerivedFrom
evidence items, whose locator is the source claim: id (ADR 0010). A malformed
locator is skipped (it simply contributes no edge), so this never fails.
Source§impl ClaimEvent
impl ClaimEvent
pub fn validate(&self) -> Result<(), ValidationError>
Trait Implementations§
Source§impl Clone for ClaimEvent
impl Clone for ClaimEvent
Source§fn clone(&self) -> ClaimEvent
fn clone(&self) -> ClaimEvent
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 ClaimEvent
impl Debug for ClaimEvent
Source§impl<'de> Deserialize<'de> for ClaimEvent
impl<'de> Deserialize<'de> for ClaimEvent
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 ClaimEvent
Source§impl PartialEq for ClaimEvent
impl PartialEq for ClaimEvent
Source§fn eq(&self, other: &ClaimEvent) -> bool
fn eq(&self, other: &ClaimEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ClaimEvent
impl Serialize for ClaimEvent
impl StructuralPartialEq for ClaimEvent
Auto Trait Implementations§
impl Freeze for ClaimEvent
impl RefUnwindSafe for ClaimEvent
impl Send for ClaimEvent
impl Sync for ClaimEvent
impl Unpin for ClaimEvent
impl UnsafeUnpin for ClaimEvent
impl UnwindSafe for ClaimEvent
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