pub struct RecalledMemory {
pub id: String,
pub content: String,
pub memory_type: MemoryType,
pub importance: f32,
pub score: f32,
pub tags: Vec<String>,
pub session_id: Option<String>,
pub metadata: Option<Value>,
pub created_at: u64,
pub last_accessed_at: u64,
pub access_count: u32,
}Expand description
A recalled memory
Fields§
§id: String§content: String§memory_type: MemoryType§importance: f32§score: f32§session_id: Option<String>§metadata: Option<Value>§created_at: u64§last_accessed_at: u64§access_count: u32Trait Implementations§
Source§impl Clone for RecalledMemory
impl Clone for RecalledMemory
Source§fn clone(&self) -> RecalledMemory
fn clone(&self) -> RecalledMemory
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 RecalledMemory
impl Debug for RecalledMemory
Source§impl<'de> Deserialize<'de> for RecalledMemory
impl<'de> Deserialize<'de> for RecalledMemory
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 RecalledMemory
impl RefUnwindSafe for RecalledMemory
impl Send for RecalledMemory
impl Sync for RecalledMemory
impl Unpin for RecalledMemory
impl UnsafeUnpin for RecalledMemory
impl UnwindSafe for RecalledMemory
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