pub enum MemoryStatus {
Active,
Staged,
Superseded,
Expired,
Deleted,
}Expand description
Lifecycle state of a canonical memory record.
Variants§
Active
Retrievable and current.
Staged
Held pending reinforcement; not retrievable as a durable fact.
Superseded
Replaced by a newer contradicting record.
Expired
Past its validity window.
Deleted
Removed at the user’s request; retained only as a tombstone.
Implementations§
Source§impl MemoryStatus
impl MemoryStatus
Sourcepub fn is_retrievable(self) -> bool
pub fn is_retrievable(self) -> bool
Whether records in this state participate in normal retrieval.
Trait Implementations§
Source§impl Clone for MemoryStatus
impl Clone for MemoryStatus
Source§fn clone(&self) -> MemoryStatus
fn clone(&self) -> MemoryStatus
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 MemoryStatus
Source§impl Debug for MemoryStatus
impl Debug for MemoryStatus
Source§impl Default for MemoryStatus
impl Default for MemoryStatus
Source§fn default() -> MemoryStatus
fn default() -> MemoryStatus
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MemoryStatus
impl<'de> Deserialize<'de> for MemoryStatus
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 MemoryStatus
Source§impl Hash for MemoryStatus
impl Hash for MemoryStatus
Source§impl JsonSchema for MemoryStatus
impl JsonSchema for MemoryStatus
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for MemoryStatus
impl PartialEq for MemoryStatus
Source§impl Serialize for MemoryStatus
impl Serialize for MemoryStatus
impl StructuralPartialEq for MemoryStatus
Auto Trait Implementations§
impl Freeze for MemoryStatus
impl RefUnwindSafe for MemoryStatus
impl Send for MemoryStatus
impl Sync for MemoryStatus
impl Unpin for MemoryStatus
impl UnsafeUnpin for MemoryStatus
impl UnwindSafe for MemoryStatus
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