pub enum DigestAlgorithm {
Md5,
Sha256,
Sha512_256,
}Expand description
Supported digest hash algorithms as defined in RFC 7616.
Variants§
Md5
MD5 algorithm (less secure but widely supported)
Sha256
SHA-256 algorithm (recommended for new implementations)
Sha512_256
SHA-512/256 algorithm (truncated SHA-512)
Trait Implementations§
Source§impl Clone for DigestAlgorithm
impl Clone for DigestAlgorithm
Source§fn clone(&self) -> DigestAlgorithm
fn clone(&self) -> DigestAlgorithm
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DigestAlgorithm
Source§impl Debug for DigestAlgorithm
impl Debug for DigestAlgorithm
Source§impl Default for DigestAlgorithm
impl Default for DigestAlgorithm
Source§fn default() -> DigestAlgorithm
fn default() -> DigestAlgorithm
Returns the “default value” for a type. Read more
Source§impl Display for DigestAlgorithm
impl Display for DigestAlgorithm
Source§impl PartialEq for DigestAlgorithm
impl PartialEq for DigestAlgorithm
impl StructuralPartialEq for DigestAlgorithm
Auto Trait Implementations§
impl Freeze for DigestAlgorithm
impl RefUnwindSafe for DigestAlgorithm
impl Send for DigestAlgorithm
impl Sync for DigestAlgorithm
impl Unpin for DigestAlgorithm
impl UnsafeUnpin for DigestAlgorithm
impl UnwindSafe for DigestAlgorithm
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