pub struct KeyedDigest { /* private fields */ }Expand description
A versioned keyed digest that records the selected key ID without exposing key material.
Implementations§
Source§impl KeyedDigest
impl KeyedDigest
Sourcepub const fn new(key_id: DigestKeyId, bytes: [u8; 32]) -> Self
pub const fn new(key_id: DigestKeyId, bytes: [u8; 32]) -> Self
Constructs a v1 keyed digest from its key ID and digest bytes.
Sourcepub const fn key_id(self) -> DigestKeyId
pub const fn key_id(self) -> DigestKeyId
Returns the non-secret digest-key identifier.
Trait Implementations§
Source§impl Clone for KeyedDigest
impl Clone for KeyedDigest
impl Copy for KeyedDigest
Source§impl Debug for KeyedDigest
impl Debug for KeyedDigest
impl Eq for KeyedDigest
Source§impl Hash for KeyedDigest
impl Hash for KeyedDigest
Source§impl Ord for KeyedDigest
impl Ord for KeyedDigest
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 PartialEq for KeyedDigest
impl PartialEq for KeyedDigest
Source§impl PartialOrd for KeyedDigest
impl PartialOrd for KeyedDigest
impl StructuralPartialEq for KeyedDigest
Auto Trait Implementations§
impl Freeze for KeyedDigest
impl RefUnwindSafe for KeyedDigest
impl Send for KeyedDigest
impl Sync for KeyedDigest
impl Unpin for KeyedDigest
impl UnsafeUnpin for KeyedDigest
impl UnwindSafe for KeyedDigest
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