pub struct DecayStatsResponse {
pub total_decayed: u64,
pub total_deleted: u64,
pub last_run_at: Option<u64>,
pub cycles_run: u64,
pub last_cycle: Option<LastDecayCycleStats>,
}Expand description
DECAY-2: Decay activity counters and last-cycle snapshot
Fields§
§total_decayed: u64Total memories whose importance was lowered by decay (all-time)
total_deleted: u64Total memories hard-deleted by decay or TTL expiry (all-time)
last_run_at: Option<u64>Unix timestamp of the last decay cycle (None if never run)
cycles_run: u64Number of decay cycles completed since startup
last_cycle: Option<LastDecayCycleStats>Stats from the most recent decay cycle (None if never run)
Trait Implementations§
Source§impl Clone for DecayStatsResponse
impl Clone for DecayStatsResponse
Source§fn clone(&self) -> DecayStatsResponse
fn clone(&self) -> DecayStatsResponse
Returns a duplicate of the value. Read more
1.0.0 · 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 DecayStatsResponse
impl Debug for DecayStatsResponse
Source§impl<'de> Deserialize<'de> for DecayStatsResponse
impl<'de> Deserialize<'de> for DecayStatsResponse
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 DecayStatsResponse
impl RefUnwindSafe for DecayStatsResponse
impl Send for DecayStatsResponse
impl Sync for DecayStatsResponse
impl Unpin for DecayStatsResponse
impl UnsafeUnpin for DecayStatsResponse
impl UnwindSafe for DecayStatsResponse
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