pub struct FactEvent {Show 14 fields
pub event_id: FactEventId,
pub fact_id: FactId,
pub kind: FactEventKind,
pub subject: Subject,
pub predicate: Predicate,
pub value: Option<FactValue>,
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>,
pub valid_to: Option<TimestampMillis>,
}Fields§
§event_id: FactEventId§fact_id: FactId§kind: FactEventKind§subject: Subject§predicate: Predicate§value: Option<FactValue>§confidence: Confidence§ttl: Ttl§provenance: Provenance§evidence: Vec<Evidence>§observed_at: Option<TimestampMillis>§valid_from: Option<TimestampMillis>§valid_to: Option<TimestampMillis>Valid-time upper bound (ADR 0016): the instant this fact is asserted to stop
holding. Read-time freshness treats it like an elapsed TTL. None (the
pre-interval default) is skipped during serialization, so events written
before this field existed keep byte-identical canonical form and their stored
hashes (the ADR 0013 optional-field rule; unlike observed_at/valid_from,
which predate it and serialize as explicit nulls).
Implementations§
Source§impl FactEvent
impl FactEvent
Sourcepub fn dependency_edges(&self) -> Vec<FactId>
pub fn dependency_edges(&self) -> Vec<FactId>
The fact ids this event was derived from — its EvidenceKind::DerivedFrom
evidence items, whose locator is the source fact: id (ADR 0010). A malformed
locator is skipped (it simply contributes no edge), so this never fails.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FactEvent
impl<'de> Deserialize<'de> for FactEvent
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 FactEvent
impl StructuralPartialEq for FactEvent
Auto Trait Implementations§
impl Freeze for FactEvent
impl RefUnwindSafe for FactEvent
impl Send for FactEvent
impl Sync for FactEvent
impl Unpin for FactEvent
impl UnsafeUnpin for FactEvent
impl UnwindSafe for FactEvent
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