pub struct DurableMemory {
pub name: String,
pub description: String,
pub memory_type: MemoryType,
pub content: String,
pub source_session_id: String,
pub confidence: f64,
pub last_seen: String,
pub recall_count: u32,
}Expand description
A single durable memory entry — stored as a .md file.
Fields§
§name: StringShort kebab-case slug (used as filename: memory-dir/<slug>.md).
description: StringOne-line summary — used to decide relevance during recall.
memory_type: MemoryTypeMemory type.
content: StringThe memory content (body after frontmatter).
source_session_id: StringSession that produced this memory.
confidence: f64Confidence score 0.0–1.0. Entries below 0.3 are not saved.
last_seen: StringISO-8601 timestamp of last write.
recall_count: u32Number of times this memory has been surfaced to the model (recall count).
Trait Implementations§
Source§impl Clone for DurableMemory
impl Clone for DurableMemory
Source§impl Debug for DurableMemory
impl Debug for DurableMemory
Source§impl<'de> Deserialize<'de> for DurableMemory
impl<'de> Deserialize<'de> for DurableMemory
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
Auto Trait Implementations§
impl Forget for DurableMemory
impl Freeze for DurableMemory
impl Move for DurableMemory
impl RefUnwindSafe for DurableMemory
impl Send for DurableMemory
impl Sync for DurableMemory
impl Unpin for DurableMemory
impl UnsafeUnpin for DurableMemory
impl UnwindSafe for DurableMemory
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