pub struct MemoryExpiryConfig {
pub fact_days: Option<u32>,
pub project_days: Option<u32>,
pub other_days: Option<u32>,
pub preference_days: Option<u32>,
pub skill_days: Option<u32>,
}Expand description
Per-category retention policy for memory entries.
None means the category never expires.
preference and skill default to None — they represent durable knowledge.
Fields§
§fact_days: Option<u32>Max age in days for fact entries. Default: 90.
project_days: Option<u32>Max age in days for project entries. Default: 30.
other_days: Option<u32>Max age in days for other entries. Default: 60.
preference_days: Option<u32>preference entries never expire by default.
skill_days: Option<u32>skill entries never expire by default.
Trait Implementations§
Source§impl Clone for MemoryExpiryConfig
impl Clone for MemoryExpiryConfig
Source§fn clone(&self) -> MemoryExpiryConfig
fn clone(&self) -> MemoryExpiryConfig
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 MemoryExpiryConfig
impl Debug for MemoryExpiryConfig
Source§impl Default for MemoryExpiryConfig
impl Default for MemoryExpiryConfig
Source§impl<'de> Deserialize<'de> for MemoryExpiryConfig
impl<'de> Deserialize<'de> for MemoryExpiryConfig
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
Auto Trait Implementations§
impl Freeze for MemoryExpiryConfig
impl RefUnwindSafe for MemoryExpiryConfig
impl Send for MemoryExpiryConfig
impl Sync for MemoryExpiryConfig
impl Unpin for MemoryExpiryConfig
impl UnsafeUnpin for MemoryExpiryConfig
impl UnwindSafe for MemoryExpiryConfig
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