pub enum Algorithm {
Sha1,
Sha256,
Sha512,
}
Expand description
Represents hash algorithms used in HMACs.
Variants§
Sha1
SHA-1 algorithm.
Sha256
Available on crate feature
sha2
only.SHA-256 algorithm.
Sha512
Available on crate feature
sha2
only.SHA-512 algorithm.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Algorithm
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for Algorithm
Available on crate feature
serde
only.Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Algorithm
impl Eq for Algorithm
impl StructuralPartialEq for Algorithm
Auto Trait Implementations§
impl Freeze for Algorithm
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnwindSafe for Algorithm
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