pub struct Metadata {
pub key: String,
pub integrity: Integrity,
pub time: u128,
pub size: usize,
pub metadata: Value,
}
Expand description
Represents a cache index entry, which points to content.
Fields
key: String
Key this entry is stored under.
integrity: Integrity
Integrity hash for the stored data. Acts as a key into {cache}/content.
time: u128
Timestamp in unix milliseconds when this entry was written.
size: usize
Size of data associated with this entry.
metadata: Value
Arbitrary JSON associated with this entry.
Trait Implementations
impl StructuralPartialEq for Metadata
Auto Trait Implementations
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more