pub struct HashRef {
pub v: u8,
pub alg: HashAlgorithm,
pub digest: Vec<u8>,
}Expand description
Versioned hash reference. Digest is always over canonical CBOR bytes.
Fields§
§v: u8§alg: HashAlgorithm§digest: Vec<u8>Implementations§
Trait Implementations§
impl Eq for HashRef
impl StructuralPartialEq for HashRef
Auto Trait Implementations§
impl Freeze for HashRef
impl RefUnwindSafe for HashRef
impl Send for HashRef
impl Sync for HashRef
impl Unpin for HashRef
impl UnsafeUnpin for HashRef
impl UnwindSafe for HashRef
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