#[non_exhaustive]pub enum MacAlgorithm {
Sha256,
Sha384,
Sha512,
Sha3_256,
Sha3_512,
}Expand description
HMAC hash functions of POST /v2/hmac and POST /v2/hmac/verify.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Sha256
HMAC-SHA-256.
Sha384
HMAC-SHA-384.
Sha512
HMAC-SHA-512.
Sha3_256
HMAC-SHA3-256.
Sha3_512
HMAC-SHA3-512.
Trait Implementations§
Source§impl Clone for MacAlgorithm
impl Clone for MacAlgorithm
impl Copy for MacAlgorithm
Source§impl Debug for MacAlgorithm
impl Debug for MacAlgorithm
Source§impl Default for MacAlgorithm
impl Default for MacAlgorithm
Source§impl<'de> Deserialize<'de> for MacAlgorithm
impl<'de> Deserialize<'de> for MacAlgorithm
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MacAlgorithm
Source§impl Hash for MacAlgorithm
impl Hash for MacAlgorithm
Source§impl PartialEq for MacAlgorithm
impl PartialEq for MacAlgorithm
Source§impl Serialize for MacAlgorithm
impl Serialize for MacAlgorithm
impl StructuralPartialEq for MacAlgorithm
Auto Trait Implementations§
impl Forget for MacAlgorithm
impl Freeze for MacAlgorithm
impl Move for MacAlgorithm
impl RefUnwindSafe for MacAlgorithm
impl Send for MacAlgorithm
impl Sync for MacAlgorithm
impl Unpin for MacAlgorithm
impl UnsafeUnpin for MacAlgorithm
impl UnwindSafe for MacAlgorithm
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.