pub struct DecayMeta {
pub last_active: Option<DateTime<Utc>>,
pub half_life_override: Option<u32>,
}Expand description
Decay metadata for time-based relevance.
Fields§
§last_active: Option<DateTime<Utc>>Last time this knowledge was actively used/referenced
half_life_override: Option<u32>Override the tier-based half-life (in days)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DecayMeta
impl<'de> Deserialize<'de> for DecayMeta
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 DecayMeta
impl RefUnwindSafe for DecayMeta
impl Send for DecayMeta
impl Sync for DecayMeta
impl Unpin for DecayMeta
impl UnsafeUnpin for DecayMeta
impl UnwindSafe for DecayMeta
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