pub struct EntryMeta {
pub key: CacheKey,
pub size_bytes: u64,
pub created_at: DateTime<Utc>,
pub last_accessed: DateTime<Utc>,
pub ttl: Option<Duration>,
pub origin: Origin,
}Expand description
Metadata about a cached entry, queryable without loading the value.
Fields§
§key: CacheKey§size_bytes: u64§created_at: DateTime<Utc>§last_accessed: DateTime<Utc>§ttl: Option<Duration>§origin: OriginTrait 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