pub struct CanonicalDigest {
pub algorithm: DigestAlgorithm,
pub bytes: Vec<u8>,
}Expand description
Typed output of a canonical digest computation.
Carries the algorithm that produced bytes so downstream consumers
(receipt envelopes, audit logs) can record the algorithm without
out-of-band convention.
Fields§
§algorithm: DigestAlgorithmThe algorithm used.
bytes: Vec<u8>Raw digest bytes. Length depends on the algorithm (32 for BLAKE3 variants, 32 for SHA-256 once wired).
Trait Implementations§
Source§impl Clone for CanonicalDigest
impl Clone for CanonicalDigest
Source§fn clone(&self) -> CanonicalDigest
fn clone(&self) -> CanonicalDigest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CanonicalDigest
impl Debug for CanonicalDigest
Source§impl PartialEq for CanonicalDigest
impl PartialEq for CanonicalDigest
impl Eq for CanonicalDigest
impl StructuralPartialEq for CanonicalDigest
Auto Trait Implementations§
impl Freeze for CanonicalDigest
impl RefUnwindSafe for CanonicalDigest
impl Send for CanonicalDigest
impl Sync for CanonicalDigest
impl Unpin for CanonicalDigest
impl UnsafeUnpin for CanonicalDigest
impl UnwindSafe for CanonicalDigest
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> 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.