pub struct MemoryEntry {
pub id: String,
pub tier: MemoryTier,
pub content: String,
pub keywords: Vec<String>,
pub score: f64,
pub created_at: String,
pub access_count: u32,
pub embedding: Option<Vec<f32>>,
pub scope_id: String,
}Expand description
The engine’s tier and route-visible memory row (rightkit-memory-core), used unchanged at
the backend boundary: one declaration for the engine and its clients. The wire shape is the
same as the row this crate declared before 0.1.0 of rightkit-memory-client.
A single memory entry stored in the registry.
Fields§
§id: String§tier: MemoryTier§content: String§keywords: Vec<String>§score: f64Relevance/quality score.
created_at: String§access_count: u32§embedding: Option<Vec<f32>>Semantic embedding of content (L2-normalized). None until embedded;
#[serde(default)] keeps older persisted entries loadable.
scope_id: StringProject/scope this memory belongs to (Claude project-slug, or global). Lets ONE store hold
many projects with isolation — the multi-project dimension the workspace needs and CR (a
many-repo Claude Code replacement) will too. #[serde(default)] → global keeps old entries
and single-scope use unchanged.
Trait Implementations§
Source§impl Clone for MemoryEntry
impl Clone for MemoryEntry
Source§fn clone(&self) -> MemoryEntry
fn clone(&self) -> MemoryEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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<MemoryEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MemoryEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for MemoryEntry
impl PartialEq for MemoryEntry
Source§impl Serialize for MemoryEntry
impl Serialize for MemoryEntry
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for MemoryEntry
Auto Trait Implementations§
impl Forget for MemoryEntry
impl Freeze for MemoryEntry
impl Move 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more