pub struct MemoryRecord {Show 16 fields
pub id: MemoryId,
pub scope: MemoryScope,
pub kind: MemoryKind,
pub title: String,
pub description: String,
pub body: String,
pub tags: Vec<String>,
pub provenance: MemoryProvenance,
pub trust: TrustTier,
pub status: RecordStatus,
pub supersedes: Option<MemoryId>,
pub derived_from: Vec<MemoryId>,
pub working_set_rank: Option<u32>,
pub created_at_ms: u64,
pub updated_at_ms: u64,
pub usage: UsageStats,
}Expand description
The full record model (§7.1).
Two additions beyond the §7.1 field list, both deliberate:
tags: wire-compat with the markdown-eraAgentMemoryRecordprojection (recall keeps tags); a legacy retrieval surface, not part of the hub-compatible core.derived_from: consolidation lineage. Without it the §10.2 transitive ceiling cannot see a merge — “laundering by consolidation is a validator reject” requires the merge edge to be recorded.
Fields§
§id: MemoryId§scope: MemoryScope§kind: MemoryKind§title: String§description: StringWritten FOR the Selector; this line is the retrieval contract.
body: String§provenance: MemoryProvenance§trust: TrustTier§status: RecordStatus§supersedes: Option<MemoryId>§derived_from: Vec<MemoryId>§working_set_rank: Option<u32>Steward-maintained recall ordering (§8.3); superseding records inherit the prior record’s rank until the next dream.
created_at_ms: u64§updated_at_ms: u64§usage: UsageStatsTrait Implementations§
Source§impl Clone for MemoryRecord
impl Clone for MemoryRecord
Source§fn clone(&self) -> MemoryRecord
fn clone(&self) -> MemoryRecord
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 MemoryRecord
impl Debug for MemoryRecord
Source§impl<'de> Deserialize<'de> for MemoryRecord
impl<'de> Deserialize<'de> for MemoryRecord
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 MemoryRecord
Source§impl PartialEq for MemoryRecord
impl PartialEq for MemoryRecord
Source§impl Serialize for MemoryRecord
impl Serialize for MemoryRecord
impl StructuralPartialEq for MemoryRecord
Auto Trait Implementations§
impl Freeze for MemoryRecord
impl RefUnwindSafe for MemoryRecord
impl Send for MemoryRecord
impl Sync for MemoryRecord
impl Unpin for MemoryRecord
impl UnsafeUnpin for MemoryRecord
impl UnwindSafe for MemoryRecord
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
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more