pub struct MemoryRecord {Show 17 fields
pub id: String,
pub scope: MemoryScope,
pub kind: MemoryRecordKind,
pub content: String,
pub summary: Option<String>,
pub source_id: Option<String>,
pub metadata: BTreeMap<String, String>,
pub quality_state: MemoryQualityState,
pub created_at_unix_ms: u64,
pub updated_at_unix_ms: u64,
pub expires_at_unix_ms: Option<u64>,
pub importance_score: f32,
pub artifact: Option<ArtifactPointer>,
pub episode: Option<EpisodeContext>,
pub historical_state: MemoryHistoricalState,
pub lineage: Vec<LineageLink>,
pub conflict: Option<ConflictAnnotation>,
}Fields§
§id: String§scope: MemoryScope§kind: MemoryRecordKind§content: String§summary: Option<String>§source_id: Option<String>§metadata: BTreeMap<String, String>§quality_state: MemoryQualityState§created_at_unix_ms: u64§updated_at_unix_ms: u64§expires_at_unix_ms: Option<u64>§importance_score: f32§artifact: Option<ArtifactPointer>§episode: Option<EpisodeContext>§historical_state: MemoryHistoricalState§lineage: Vec<LineageLink>§conflict: Option<ConflictAnnotation>Implementations§
Trait Implementations§
Source§impl Clone for MemoryRecord
impl Clone for MemoryRecord
Source§fn clone(&self) -> MemoryRecord
fn clone(&self) -> MemoryRecord
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 MemoryRecord
impl Debug for MemoryRecord
Source§impl<'de> Deserialize<'de> for MemoryRecord
impl<'de> Deserialize<'de> for MemoryRecord
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 MemoryRecord
impl PartialEq for MemoryRecord
Source§fn eq(&self, other: &MemoryRecord) -> bool
fn eq(&self, other: &MemoryRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MemoryRecord
impl Serialize for MemoryRecord
impl StructuralPartialEq for MemoryRecord
Auto Trait Implementations§
impl Freeze for MemoryRecord
impl RefUnwindSafe for MemoryRecord
impl Send for MemoryRecord
impl Sync for MemoryRecord
impl Unpin for MemoryRecord
impl UnsafeUnpin for MemoryRecord
impl UnwindSafe for MemoryRecord
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