pub enum MemoryEvent {
Captured {
memory_id: MemoryId,
namespace: Namespace,
domain: Domain,
content_length: usize,
timestamp: u64,
},
Retrieved {
memory_id: MemoryId,
query: String,
score: f32,
timestamp: u64,
},
Updated {
memory_id: MemoryId,
modified_fields: Vec<String>,
timestamp: u64,
},
Archived {
memory_id: MemoryId,
reason: String,
timestamp: u64,
},
Deleted {
memory_id: MemoryId,
reason: String,
timestamp: u64,
},
Redacted {
memory_id: MemoryId,
redaction_type: String,
timestamp: u64,
},
Synced {
pushed: usize,
pulled: usize,
conflicts: usize,
timestamp: u64,
},
Consolidated {
processed: usize,
archived: usize,
merged: usize,
timestamp: u64,
},
}Expand description
Events emitted during memory operations.
Variants§
Captured
A memory was captured.
Fields
Retrieved
A memory was retrieved via search.
Fields
Updated
A memory was updated.
Fields
Archived
A memory was archived.
Fields
Deleted
A memory was deleted.
Fields
Redacted
Content was redacted for security.
Fields
Synced
Memories were synchronized with remote.
Fields
Consolidated
Consolidation occurred.
Implementations§
Source§impl MemoryEvent
impl MemoryEvent
Trait Implementations§
Source§impl Clone for MemoryEvent
impl Clone for MemoryEvent
Source§fn clone(&self) -> MemoryEvent
fn clone(&self) -> MemoryEvent
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 MemoryEvent
impl RefUnwindSafe for MemoryEvent
impl Send for MemoryEvent
impl Sync for MemoryEvent
impl Unpin for MemoryEvent
impl UnwindSafe for MemoryEvent
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