pub struct UserMemory {
pub user_id: String,
pub preferences: Vec<Preference>,
pub facts: Vec<MemoryFact>,
}Expand description
User memory containing preferences and learned facts.
Fields§
§user_id: StringThe user’s unique identifier.
preferences: Vec<Preference>List of user preferences.
facts: Vec<MemoryFact>List of facts learned about the user.
Trait Implementations§
Source§impl Clone for UserMemory
impl Clone for UserMemory
Source§fn clone(&self) -> UserMemory
fn clone(&self) -> UserMemory
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UserMemory
impl Debug for UserMemory
Source§impl<'de> Deserialize<'de> for UserMemory
impl<'de> Deserialize<'de> for UserMemory
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 UserMemory
impl RefUnwindSafe for UserMemory
impl Send for UserMemory
impl Sync for UserMemory
impl Unpin for UserMemory
impl UnsafeUnpin for UserMemory
impl UnwindSafe for UserMemory
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