pub struct SemanticMemoryUpsert {
pub memory_id: SemanticMemoryId,
pub namespace: MemoryNamespace,
pub content: String,
pub sources: Vec<SemanticMemorySource>,
pub metadata: BTreeMap<String, Value>,
pub expected_revision: Option<u64>,
}Expand description
Create-or-CAS command for one semantic memory.
Fields§
§memory_id: SemanticMemoryIdStable memory identity.
namespace: MemoryNamespaceIsolation namespace.
content: StringSearchable semantic content.
sources: Vec<SemanticMemorySource>Immutable transcript provenance.
metadata: BTreeMap<String, Value>Application metadata.
expected_revision: Option<u64>None creates; Some requires an exact current revision.
Trait Implementations§
Source§impl Clone for SemanticMemoryUpsert
impl Clone for SemanticMemoryUpsert
Source§fn clone(&self) -> SemanticMemoryUpsert
fn clone(&self) -> SemanticMemoryUpsert
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 SemanticMemoryUpsert
impl Debug for SemanticMemoryUpsert
Source§impl<'de> Deserialize<'de> for SemanticMemoryUpsert
impl<'de> Deserialize<'de> for SemanticMemoryUpsert
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
Source§impl PartialEq for SemanticMemoryUpsert
impl PartialEq for SemanticMemoryUpsert
Source§impl Serialize for SemanticMemoryUpsert
impl Serialize for SemanticMemoryUpsert
impl StructuralPartialEq for SemanticMemoryUpsert
Auto Trait Implementations§
impl Freeze for SemanticMemoryUpsert
impl RefUnwindSafe for SemanticMemoryUpsert
impl Send for SemanticMemoryUpsert
impl Sync for SemanticMemoryUpsert
impl Unpin for SemanticMemoryUpsert
impl UnsafeUnpin for SemanticMemoryUpsert
impl UnwindSafe for SemanticMemoryUpsert
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