pub struct Metadata {
pub key: String,
pub integrity: Integrity,
pub time: u128,
pub size: usize,
pub metadata: Value,
pub raw_metadata: Option<Vec<u8>>,
}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.
raw_metadata: Option<Vec<u8>>Raw metadata in binary form. Can be different from JSON metadata.
Trait Implementations§
source§impl PartialEq<Metadata> for Metadata
impl PartialEq<Metadata> for Metadata
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§
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