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: StringKey this entry is stored under.
integrity: IntegrityIntegrity hash for the stored data. Acts as a key into {cache}/content.
time: u128Timestamp in unix milliseconds when this entry was written.
size: usizeSize of data associated with this entry.
metadata: ValueArbitrary 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