pub struct MemoryRecordRequest {
pub about: String,
pub dimensions: Vec<MemoryDimensionSpec>,
pub entries: Vec<MemoryEntrySpec>,
pub relations: Vec<MemoryRelationSpec>,
pub evidence: Vec<MemoryEvidenceSpec>,
pub provenance: Option<MemoryProvenanceSpec>,
pub idempotency_key: String,
}Expand description
Put something into the memory of one about.
The write side of the contract. Idempotent by declaration: the kernel keys
the record on idempotency_key, so a retry with the same key and the same
content returns the recorded outcome, and the same key with different
content is refused rather than silently replacing what a previous caller
meant.
Fields§
§about: StringWhat the memory is about. The kernel’s addressing, opaque to it — the same field, with the same meaning, as on the recall side.
dimensions: Vec<MemoryDimensionSpec>§entries: Vec<MemoryEntrySpec>§relations: Vec<MemoryRelationSpec>§evidence: Vec<MemoryEvidenceSpec>§provenance: Option<MemoryProvenanceSpec>§idempotency_key: StringStable across retries of the same logical record.
Trait Implementations§
Source§impl Clone for MemoryRecordRequest
impl Clone for MemoryRecordRequest
Source§fn clone(&self) -> MemoryRecordRequest
fn clone(&self) -> MemoryRecordRequest
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 MemoryRecordRequest
impl Debug for MemoryRecordRequest
Source§impl<'de> Deserialize<'de> for MemoryRecordRequest
impl<'de> Deserialize<'de> for MemoryRecordRequest
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
impl Eq for MemoryRecordRequest
Source§impl PartialEq for MemoryRecordRequest
impl PartialEq for MemoryRecordRequest
Source§impl Serialize for MemoryRecordRequest
impl Serialize for MemoryRecordRequest
impl StructuralPartialEq for MemoryRecordRequest
Auto Trait Implementations§
impl Freeze for MemoryRecordRequest
impl RefUnwindSafe for MemoryRecordRequest
impl Send for MemoryRecordRequest
impl Sync for MemoryRecordRequest
impl Unpin for MemoryRecordRequest
impl UnsafeUnpin for MemoryRecordRequest
impl UnwindSafe for MemoryRecordRequest
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