pub struct Bound {
pub name: String,
pub digest: Digest,
pub meta: Meta,
pub when: u64,
}Expand description
A name, what it points at, and what was said about it.
Fields§
§name: StringWhat it is called: a cache key, an artifact’s id.
digest: DigestThe bytes it points at.
meta: MetaWhat the caller wanted to remember.
when: u64When it was bound, in seconds since the epoch. Stamped here because a store you cannot sort by time is one you cannot explore.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Bound
impl<'de> Deserialize<'de> for Bound
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Bound
impl StructuralPartialEq for Bound
Auto Trait Implementations§
impl Freeze for Bound
impl RefUnwindSafe for Bound
impl Send for Bound
impl Sync for Bound
impl Unpin for Bound
impl UnsafeUnpin for Bound
impl UnwindSafe for Bound
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