pub struct IngestedMemory {
pub source_key: String,
pub title: String,
pub body: String,
pub mem_type: String,
pub topic_key: Option<String>,
pub scope: Scope,
}Expand description
The universal item every ingest source produces. memnite turns each into a
MemoryAdded/MemoryUpdated event. (Eq is not derived: Scope is only
PartialEq.)
Fields§
§source_key: StringStable key WITHIN the source (e.g. “ubiquitous-language::Harness”). Combined with the source name it yields a deterministic memory id.
title: String§body: String§mem_type: String§topic_key: Option<String>§scope: ScopeTrait Implementations§
Source§impl Clone for IngestedMemory
impl Clone for IngestedMemory
Source§fn clone(&self) -> IngestedMemory
fn clone(&self) -> IngestedMemory
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 IngestedMemory
impl Debug for IngestedMemory
Source§impl PartialEq for IngestedMemory
impl PartialEq for IngestedMemory
impl StructuralPartialEq for IngestedMemory
Auto Trait Implementations§
impl Freeze for IngestedMemory
impl RefUnwindSafe for IngestedMemory
impl Send for IngestedMemory
impl Sync for IngestedMemory
impl Unpin for IngestedMemory
impl UnsafeUnpin for IngestedMemory
impl UnwindSafe for IngestedMemory
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