pub struct MemoryEntry {
pub content: Value,
pub strength: f64,
pub created_at: u64,
pub last_accessed: u64,
pub access_count: u64,
pub emotional_weight: f64,
}
Expand description
Individual memory entry
Fieldsยง
ยงcontent: Value
Memory content
strength: f64
Memory strength (0.0-1.0)
created_at: u64
When memory was created
last_accessed: u64
Last time memory was accessed
access_count: u64
Number of times accessed
emotional_weight: f64
Emotional weight of memory
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<'de> Deserialize<'de> for MemoryEntry
impl<'de> Deserialize<'de> for MemoryEntry
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 Freeze for MemoryEntry
impl RefUnwindSafe for MemoryEntry
impl Send for MemoryEntry
impl Sync for MemoryEntry
impl Unpin 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