pub struct EntryMeta {
pub key: String,
pub size: u64,
pub created_at: u64,
pub last_accessed: u64,
pub expires_at: Option<u64>,
}Expand description
Metadata for a cached entry, stored as a sidecar file.
Fields§
§key: StringOriginal user-provided key.
size: u64Size of the cached file in bytes.
created_at: u64Creation timestamp (nanos since UNIX epoch) — used for TTL.
last_accessed: u64Last access timestamp (nanos since UNIX epoch) — used for LRU.
expires_at: Option<u64>TTL expiry timestamp (nanos since UNIX epoch), None = never expires.
Implementations§
Source§impl EntryMeta
impl EntryMeta
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EntryMeta
impl<'de> Deserialize<'de> for EntryMeta
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 EntryMeta
impl RefUnwindSafe for EntryMeta
impl Send for EntryMeta
impl Sync for EntryMeta
impl Unpin for EntryMeta
impl UnsafeUnpin for EntryMeta
impl UnwindSafe for EntryMeta
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