pub enum WebhookScheme {
Hex {
prefix: Option<String>,
},
Base64 {
prefix: Option<String>,
},
StripeTimestamped {
version: String,
},
}Expand description
Signature header encoding and payload-framing scheme for an inbound WebhookEndpoint.
Variants§
Hex
Hex-encoded 32-byte HMAC-SHA256 digest with an optional prefix (for example Some("sha256=") for GitHub).
Base64
Base64-encoded 32-byte HMAC-SHA256 digest with an optional prefix (for example Shopify or Some("v1,")).
StripeTimestamped
Stripe-style t=<unix_secs>,<version>=<hex>[,<version>=<hex>...] header signing b"<t>.<body>".
Trait Implementations§
Source§impl Clone for WebhookScheme
impl Clone for WebhookScheme
Source§impl Debug for WebhookScheme
impl Debug for WebhookScheme
impl Eq for WebhookScheme
Source§impl PartialEq for WebhookScheme
impl PartialEq for WebhookScheme
impl StructuralPartialEq for WebhookScheme
Auto Trait Implementations§
impl Forget for WebhookScheme
impl Freeze for WebhookScheme
impl Move for WebhookScheme
impl RefUnwindSafe for WebhookScheme
impl Send for WebhookSchemewhere
RawVecInner: Send,
impl Sync for WebhookSchemewhere
RawVecInner: Sync,
impl Unpin for WebhookScheme
impl UnsafeUnpin for WebhookScheme
impl UnwindSafe for WebhookSchemewhere
RawVecInner: UnwindSafe,
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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,
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.