pub struct ContentId {
pub algorithm: Symbol,
pub bytes: [u8; 32],
}Expand description
Content-addressed identity: a hash algorithm plus its 32-byte digest.
Fields§
§algorithm: SymbolThe hash algorithm that produced the digest (for example core/sha256).
bytes: [u8; 32]The 32-byte content digest.
Implementations§
Trait Implementations§
impl Eq for ContentId
Source§impl Ord for ContentId
impl Ord for ContentId
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
Source§impl PartialOrd for ContentId
impl PartialOrd for ContentId
impl StructuralPartialEq for ContentId
Auto Trait Implementations§
impl Freeze for ContentId
impl RefUnwindSafe for ContentId
impl Send for ContentId
impl Sync for ContentId
impl Unpin for ContentId
impl UnsafeUnpin for ContentId
impl UnwindSafe for ContentId
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