pub struct MemoryState {
pub claim: String,
pub memory_type: MemoryKind,
pub claim_key: Option<String>,
pub truth_state: TruthState,
pub salience: SalienceScore,
}Expand description
Semantic state of one memory entry in a snapshot.
Fields§
§claim: StringMemory claim text.
memory_type: MemoryKindCategory of this memory.
claim_key: Option<String>Optional deduplication key for the claim.
truth_state: TruthStateCurrent truth classification.
salience: SalienceScoreQuantized salience score.
Trait Implementations§
Source§impl Clone for MemoryState
impl Clone for MemoryState
Source§fn clone(&self) -> MemoryState
fn clone(&self) -> MemoryState
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 MemoryState
impl Debug for MemoryState
Source§impl<'de> Deserialize<'de> for MemoryState
impl<'de> Deserialize<'de> for MemoryState
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 Ord for MemoryState
impl Ord for MemoryState
Source§fn cmp(&self, other: &MemoryState) -> Ordering
fn cmp(&self, other: &MemoryState) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MemoryState
impl PartialEq for MemoryState
Source§fn eq(&self, other: &MemoryState) -> bool
fn eq(&self, other: &MemoryState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for MemoryState
impl PartialOrd for MemoryState
Source§impl Serialize for MemoryState
impl Serialize for MemoryState
impl Eq for MemoryState
impl StructuralPartialEq for MemoryState
Auto Trait Implementations§
impl Freeze for MemoryState
impl RefUnwindSafe for MemoryState
impl Send for MemoryState
impl Sync for MemoryState
impl Unpin for MemoryState
impl UnsafeUnpin for MemoryState
impl UnwindSafe for MemoryState
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