#[non_exhaustive]pub enum HmacAlgorithm {
Sha1,
Sha256,
Sha512,
Md5,
Other(String),
}Expand description
The HMAC hash (V1WebhookHMACAlgorithm).
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.
Sha1
SHA-1.
Sha256
SHA-256.
Sha512
SHA-512.
Md5
MD5.
Other(String)
A value this version of the crate does not know, exactly as the engine spelled it.
Implementations§
Trait Implementations§
Source§impl Clone for HmacAlgorithm
impl Clone for HmacAlgorithm
Source§impl Debug for HmacAlgorithm
impl Debug for HmacAlgorithm
Source§impl<'de> Deserialize<'de> for HmacAlgorithm
impl<'de> Deserialize<'de> for HmacAlgorithm
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
Source§impl Display for HmacAlgorithm
impl Display for HmacAlgorithm
impl Eq for HmacAlgorithm
Source§impl Hash for HmacAlgorithm
impl Hash for HmacAlgorithm
Source§impl PartialEq for HmacAlgorithm
impl PartialEq for HmacAlgorithm
Source§impl Serialize for HmacAlgorithm
impl Serialize for HmacAlgorithm
impl StructuralPartialEq for HmacAlgorithm
Auto Trait Implementations§
impl Forget for HmacAlgorithm
impl Freeze for HmacAlgorithm
impl Move for HmacAlgorithm
impl RefUnwindSafe for HmacAlgorithm
impl Send for HmacAlgorithm
impl Sync for HmacAlgorithm
impl Unpin for HmacAlgorithm
impl UnsafeUnpin for HmacAlgorithm
impl UnwindSafe for HmacAlgorithm
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