pub struct CacheMeta {
pub expire: Option<DateTime<Utc>>,
pub stale: Option<DateTime<Utc>>,
}Expand description
Cache expiration metadata without the data.
Contains just the staleness and expiration timestamps. Useful for passing metadata around without copying the cached data.
§Fields
expire- When the data expires (becomes invalid)stale- When the data becomes stale (should refresh in background)
Fields§
§expire: Option<DateTime<Utc>>When the cached data expires and becomes invalid.
stale: Option<DateTime<Utc>>When the cached data becomes stale and should be refreshed.
Implementations§
Auto Trait Implementations§
impl Freeze for CacheMeta
impl RefUnwindSafe for CacheMeta
impl Send for CacheMeta
impl Sync for CacheMeta
impl Unpin for CacheMeta
impl UnwindSafe for CacheMeta
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