pub struct HistoryEntry {
pub claim_ref: ClaimRef,
pub value: Value,
pub valid_from: Option<DateTime<Utc>>,
pub valid_until: Option<DateTime<Utc>>,
pub status: HistoryEntryStatus,
pub provenance: String,
pub value_confidence: f32,
}Expand description
Re-export core’s HistoryEntry so callers only need use mempill::HistoryEntry.
One slot in the history timeline for a subject-line.
status is derived from is_live in the canonical fold — the Current entry is
exactly the claim that recall / query_memory would return as primary.
Fields§
§claim_ref: ClaimRefStable reference to the underlying claim (UUID).
value: ValueThe asserted value for this claim.
valid_from: Option<DateTime<Utc>>Start of the valid-time window, or None if unknown.
valid_until: Option<DateTime<Utc>>Effective end of the slot: equals the successor’s canonical ordering key,
or None for the open-ended current slot.
status: HistoryEntryStatusWhether this claim is the live belief or has been superseded.
provenance: StringHuman-readable provenance label (e.g. "External/UserAsserted").
value_confidence: f32Confidence in the claim’s value (0.0–1.0).
Trait Implementations§
Source§impl Clone for HistoryEntry
impl Clone for HistoryEntry
Source§fn clone(&self) -> HistoryEntry
fn clone(&self) -> HistoryEntry
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 HistoryEntry
impl Debug for HistoryEntry
Source§impl<'de> Deserialize<'de> for HistoryEntry
impl<'de> Deserialize<'de> for HistoryEntry
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<HistoryEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<HistoryEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for HistoryEntry
impl PartialEq for HistoryEntry
Source§fn eq(&self, other: &HistoryEntry) -> bool
fn eq(&self, other: &HistoryEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for HistoryEntry
impl Serialize for HistoryEntry
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for HistoryEntry
Auto Trait Implementations§
impl Freeze for HistoryEntry
impl RefUnwindSafe for HistoryEntry
impl Send for HistoryEntry
impl Sync for HistoryEntry
impl Unpin for HistoryEntry
impl UnsafeUnpin for HistoryEntry
impl UnwindSafe for HistoryEntry
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