pub struct MemoryEntry {
pub key: CompactString,
pub value: String,
pub metadata: Option<Value>,
pub created_at: u64,
pub accessed_at: u64,
pub access_count: u32,
pub embedding: Option<Vec<f32>>,
}Expand description
A structured memory entry with metadata and optional embedding.
Fields§
§key: CompactStringEntry key (identity string).
value: StringEntry value (unbounded content).
metadata: Option<Value>Optional structured metadata (JSON).
created_at: u64Unix timestamp when the entry was created.
accessed_at: u64Unix timestamp when the entry was last accessed.
access_count: u32Number of times the entry has been accessed.
embedding: Option<Vec<f32>>Optional embedding vector for semantic search.
Trait Implementations§
Source§impl Clone for MemoryEntry
impl Clone for MemoryEntry
Source§fn clone(&self) -> MemoryEntry
fn clone(&self) -> MemoryEntry
Returns a duplicate of the value. Read more
1.0.0 · 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 MemoryEntry
impl Debug for MemoryEntry
Source§impl Default for MemoryEntry
impl Default for MemoryEntry
Source§fn default() -> MemoryEntry
fn default() -> MemoryEntry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MemoryEntry
impl RefUnwindSafe for MemoryEntry
impl Send for MemoryEntry
impl Sync for MemoryEntry
impl Unpin for MemoryEntry
impl UnsafeUnpin for MemoryEntry
impl UnwindSafe for MemoryEntry
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