pub struct BlobRef<M: Media> {
pub hash: BlobHash,
/* private fields */
}Expand description
A content-addressed blob whose media type is part of its type, so a tree ref cannot be read as a frame. Only the writer makes them, and reading a trace back.
Fields§
§hash: BlobHashThe hash of the blob’s bytes, which is also its name.
Implementations§
Trait Implementations§
impl<M: Media> Copy for BlobRef<M>
Source§impl<'de, M: Media> Deserialize<'de> for BlobRef<M>
impl<'de, M: Media> Deserialize<'de> for BlobRef<M>
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl<M: Media> Eq for BlobRef<M>
Source§impl<M: Media> Ord for BlobRef<M>
impl<M: Media> Ord for BlobRef<M>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl<M: Media> PartialOrd for BlobRef<M>
impl<M: Media> PartialOrd for BlobRef<M>
Auto Trait Implementations§
impl<M> Forget for BlobRef<M>
impl<M> Freeze for BlobRef<M>
impl<M> Move for BlobRef<M>
impl<M> RefUnwindSafe for BlobRef<M>
impl<M> Send for BlobRef<M>
impl<M> Sync for BlobRef<M>
impl<M> Unpin for BlobRef<M>
impl<M> UnsafeUnpin for BlobRef<M>
impl<M> UnwindSafe for BlobRef<M>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.