pub struct Entry {
pub key: String,
pub value: Vec<u8>,
pub expires_at: Option<SystemTime>,
pub created_at: SystemTime,
pub updated_at: SystemTime,
}Expand description
A full entry with metadata.
Fields§
§key: StringThe key.
value: Vec<u8>The value as raw bytes.
expires_at: Option<SystemTime>When the entry expires, if set.
created_at: SystemTimeWhen the entry was created.
updated_at: SystemTimeWhen the entry was last updated.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnwindSafe for Entry
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