pub struct CacheMetadata {
pub created_at: DateTime<Utc>,
pub last_accessed: DateTime<Utc>,
pub access_count: usize,
pub input_size: usize,
pub value_size: usize,
}Expand description
Metadata for cache entry management
Fields§
§created_at: DateTime<Utc>When this entry was created
last_accessed: DateTime<Utc>Last time this entry was accessed
access_count: usizeNumber of times this entry has been accessed
input_size: usizeSize of the input that produced this entry, in bytes
value_size: usizeSize of the cached value in bytes
Trait Implementations§
Source§impl Clone for CacheMetadata
impl Clone for CacheMetadata
Source§fn clone(&self) -> CacheMetadata
fn clone(&self) -> CacheMetadata
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 CacheMetadata
impl Debug for CacheMetadata
Source§impl<'de> Deserialize<'de> for CacheMetadata
impl<'de> Deserialize<'de> for CacheMetadata
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 CacheMetadata
impl RefUnwindSafe for CacheMetadata
impl Send for CacheMetadata
impl Sync for CacheMetadata
impl Unpin for CacheMetadata
impl UnsafeUnpin for CacheMetadata
impl UnwindSafe for CacheMetadata
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