pub struct SignatureConfig {
pub algorithm: SignatureAlgorithm,
pub secret_env: String,
pub header: String,
pub prefix: Option<String>,
pub encoding: SignatureEncoding,
}Expand description
HMAC signature verification configuration
Fields§
§algorithm: SignatureAlgorithmSignature algorithm type
secret_env: StringEnvironment variable containing the secret
header: StringHeader containing the signature
prefix: Option<String>Prefix to strip from signature (e.g., “sha256=”)
encoding: SignatureEncodingEncoding of the signature (hex or base64)
Trait Implementations§
Source§impl Clone for SignatureConfig
impl Clone for SignatureConfig
Source§fn clone(&self) -> SignatureConfig
fn clone(&self) -> SignatureConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SignatureConfig
impl Debug for SignatureConfig
Source§impl<'de> Deserialize<'de> for SignatureConfig
impl<'de> Deserialize<'de> for SignatureConfig
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
Source§impl PartialEq for SignatureConfig
impl PartialEq for SignatureConfig
Source§impl Serialize for SignatureConfig
impl Serialize for SignatureConfig
impl StructuralPartialEq for SignatureConfig
Auto Trait Implementations§
impl Freeze for SignatureConfig
impl RefUnwindSafe for SignatureConfig
impl Send for SignatureConfig
impl Sync for SignatureConfig
impl Unpin for SignatureConfig
impl UnsafeUnpin for SignatureConfig
impl UnwindSafe for SignatureConfig
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