pub struct KeyedMemory {
pub memory: Memory,
pub key: Option<String>,
}Expand description
One keyed fact inside a CommitBatch (Phase 12.7c).
Fields§
§memory: MemoryThe memory to store. An empty vector means “embed
content with the registered embedder” (12.7d): every such fact
in a batch is embedded together in one Embedder::embed call.
key: Option<String>Optional 12.1 upsert key.
Trait Implementations§
Source§impl Clone for KeyedMemory
impl Clone for KeyedMemory
Auto Trait Implementations§
impl Forget for KeyedMemory
impl Freeze for KeyedMemory
impl RefUnwindSafe for KeyedMemory
impl Send for KeyedMemory
impl Sync for KeyedMemory
impl Unpin for KeyedMemory
impl UnsafeUnpin for KeyedMemory
impl UnwindSafe for KeyedMemory
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