pub struct TaggedEntry {
pub key: CacheKey,
pub tags: HashSet<CacheTag>,
pub created_at: DateTime<Utc>,
pub expires_at: Option<DateTime<Utc>>,
}Expand description
Cache entry metadata with tags
Fields§
§key: CacheKeyThe actual cache key
Tags associated with this entry
created_at: DateTime<Utc>When this entry was created
expires_at: Option<DateTime<Utc>>When this entry expires (if any)
Trait Implementations§
Source§impl Clone for TaggedEntry
impl Clone for TaggedEntry
Source§fn clone(&self) -> TaggedEntry
fn clone(&self) -> TaggedEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TaggedEntry
impl Debug for TaggedEntry
Source§impl<'de> Deserialize<'de> for TaggedEntry
impl<'de> Deserialize<'de> for TaggedEntry
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 TaggedEntry
impl RefUnwindSafe for TaggedEntry
impl Send for TaggedEntry
impl Sync for TaggedEntry
impl Unpin for TaggedEntry
impl UnsafeUnpin for TaggedEntry
impl UnwindSafe for TaggedEntry
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