pub struct SemanticMemoryId(/* private fields */);Expand description
Stable identity of one explicitly curated semantic memory.
Implementations§
Source§impl SemanticMemoryId
impl SemanticMemoryId
Sourcepub const fn from_checkpoint_id(id: CheckpointId) -> Self
pub const fn from_checkpoint_id(id: CheckpointId) -> Self
Reconstructs a semantic-memory identity from durable storage.
Sourcepub const fn as_checkpoint_id(self) -> CheckpointId
pub const fn as_checkpoint_id(self) -> CheckpointId
Returns the UUID-backed durable identity.
Trait Implementations§
Source§impl Clone for SemanticMemoryId
impl Clone for SemanticMemoryId
Source§fn clone(&self) -> SemanticMemoryId
fn clone(&self) -> SemanticMemoryId
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 moreimpl Copy for SemanticMemoryId
Source§impl Debug for SemanticMemoryId
impl Debug for SemanticMemoryId
Source§impl Default for SemanticMemoryId
impl Default for SemanticMemoryId
Source§impl<'de> Deserialize<'de> for SemanticMemoryId
impl<'de> Deserialize<'de> for SemanticMemoryId
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 SemanticMemoryId
Source§impl Ord for SemanticMemoryId
impl Ord for SemanticMemoryId
Source§fn cmp(&self, other: &SemanticMemoryId) -> Ordering
fn cmp(&self, other: &SemanticMemoryId) -> 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 SemanticMemoryId
impl PartialEq for SemanticMemoryId
Source§impl PartialOrd for SemanticMemoryId
impl PartialOrd for SemanticMemoryId
Source§impl Serialize for SemanticMemoryId
impl Serialize for SemanticMemoryId
impl StructuralPartialEq for SemanticMemoryId
Auto Trait Implementations§
impl Freeze for SemanticMemoryId
impl RefUnwindSafe for SemanticMemoryId
impl Send for SemanticMemoryId
impl Sync for SemanticMemoryId
impl Unpin for SemanticMemoryId
impl UnsafeUnpin for SemanticMemoryId
impl UnwindSafe for SemanticMemoryId
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.