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: 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.
raw_metadata: Option<Vec<u8>>
Raw metadata in binary form. Can be different from JSON metadata.
Trait Implementations§
source§impl PartialEq for Metadata
impl PartialEq 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