pub enum MemoryKind {
User,
BehaviorPreference,
Project,
Reference,
}Expand description
Memory kind (4 types, mirroring Claude Code’s taxonomy).
Variants§
User
User profile: who they are, expertise level, role.
BehaviorPreference
Behavior preference: what they like/dislike, approved patterns.
Project
Project context: what’s happening, milestones, phases.
Reference
External pointer: where to find things (tickets, docs).
Implementations§
Source§impl MemoryKind
impl MemoryKind
pub fn label(self) -> &'static str
Sourcepub fn infer_from_metadata(metadata: &MemoryMetadata) -> Self
pub fn infer_from_metadata(metadata: &MemoryMetadata) -> Self
Infer memory kind from metadata fields (heuristic classifier).
Trait Implementations§
Source§impl Clone for MemoryKind
impl Clone for MemoryKind
Source§fn clone(&self) -> MemoryKind
fn clone(&self) -> MemoryKind
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 moreimpl Copy for MemoryKind
Source§impl Debug for MemoryKind
impl Debug for MemoryKind
Source§impl<'de> Deserialize<'de> for MemoryKind
impl<'de> Deserialize<'de> for MemoryKind
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
impl Eq for MemoryKind
Source§impl PartialEq for MemoryKind
impl PartialEq for MemoryKind
Source§fn eq(&self, other: &MemoryKind) -> bool
fn eq(&self, other: &MemoryKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MemoryKind
impl Serialize for MemoryKind
impl StructuralPartialEq for MemoryKind
Auto Trait Implementations§
impl Freeze for MemoryKind
impl RefUnwindSafe for MemoryKind
impl Send for MemoryKind
impl Sync for MemoryKind
impl Unpin for MemoryKind
impl UnsafeUnpin for MemoryKind
impl UnwindSafe for MemoryKind
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