pub struct CredentialDigest(/* private fields */);Expand description
Bytes derived from a credential: a digest, fingerprint or verifier of a token or secret.
Its Debug names its length and never its bytes, and it implements no
Display and no accessor that formats them (PROTO-007 R1). Its bytes are
the canonical 32 it replaces, so every encoding of it is unchanged.
Implementations§
Trait Implementations§
Source§impl CanonicalDigest<CANONICAL_DIGEST_LEN> for CredentialDigest
impl CanonicalDigest<CANONICAL_DIGEST_LEN> for CredentialDigest
Source§fn to_canonical(self) -> [u8; 32]
fn to_canonical(self) -> [u8; 32]
The canonical bytes.
Source§fn from_canonical(bytes: [u8; 32]) -> Self
fn from_canonical(bytes: [u8; 32]) -> Self
The digest the canonical bytes name.
Source§impl Clone for CredentialDigest
impl Clone for CredentialDigest
impl Copy for CredentialDigest
Source§impl Debug for CredentialDigest
impl Debug for CredentialDigest
Source§impl Default for CredentialDigest
impl Default for CredentialDigest
impl Eq for CredentialDigest
Source§impl Hash for CredentialDigest
impl Hash for CredentialDigest
Source§impl Ord for CredentialDigest
impl Ord for CredentialDigest
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 CredentialDigest
impl PartialEq for CredentialDigest
Source§impl PartialOrd for CredentialDigest
impl PartialOrd for CredentialDigest
impl StructuralPartialEq for CredentialDigest
Auto Trait Implementations§
impl Freeze for CredentialDigest
impl RefUnwindSafe for CredentialDigest
impl Send for CredentialDigest
impl Sync for CredentialDigest
impl Unpin for CredentialDigest
impl UnsafeUnpin for CredentialDigest
impl UnwindSafe for CredentialDigest
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