pub struct MemoryEntry {
pub id: i64,
pub role: String,
pub content: String,
pub token_count: usize,
pub timestamp: i64,
pub depth: u8,
}Expand description
A single memory entry (message or summary).
Fields§
§id: i64Unique identifier.
role: StringMessage role (“user”, “assistant”, “system”).
content: StringContent text.
token_count: usizeEstimated token count.
timestamp: i64Unix timestamp (seconds since epoch).
depth: u8Summary depth: 0 = raw message, 1+ = summary level.
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 moreAuto 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