pub struct Hmac {
pub secret: Option<Secret>,
pub header: Option<String>,
pub algo: Option<String>,
pub prefix: Option<String>,
}Fields§
§secret: Option<Secret>§header: Option<String>The header carrying the signature (default X-Signature).
algo: Option<String>Digest algorithm — sha256 (default; the only supported algorithm).
prefix: Option<String>A prefix stripped before the constant-time hex compare (e.g. sha256=).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Hmac
impl<'de> Deserialize<'de> for Hmac
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 StructuralPartialEq for Hmac
Auto Trait Implementations§
impl Freeze for Hmac
impl RefUnwindSafe for Hmac
impl Send for Hmac
impl Sync for Hmac
impl Unpin for Hmac
impl UnsafeUnpin for Hmac
impl UnwindSafe for Hmac
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