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.