pub enum WebhookSchemeKind {
HmacBody,
HmacTimestampedBody,
HmacUrlFormFields,
}Expand description
What kind of signature scheme a provider implements. Runtime uses this to surface shape in admin UI and to help CLI wizards generate the right secret-configuration stanza. It is not an exhaustive taxonomy — new schemes land as new variants.
Variants§
HmacBody
HMAC over the raw body with a shared secret.
Used by GitHub (X-Hub-Signature-256) and Shopify
(X-Shopify-Hmac-Sha256).
HmacTimestampedBody
HMAC over {timestamp}.{body} or v0:{ts}:{body} with replay
protection via a freshness window.
Used by Stripe and Slack.
HmacUrlFormFields
HMAC over the request URL concatenated with sorted form-field pairs. Used by Twilio.
Trait Implementations§
Source§impl Clone for WebhookSchemeKind
impl Clone for WebhookSchemeKind
Source§fn clone(&self) -> WebhookSchemeKind
fn clone(&self) -> WebhookSchemeKind
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 WebhookSchemeKind
impl Debug for WebhookSchemeKind
Source§impl<'de> Deserialize<'de> for WebhookSchemeKind
impl<'de> Deserialize<'de> for WebhookSchemeKind
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 WebhookSchemeKind
impl PartialEq for WebhookSchemeKind
Source§impl Serialize for WebhookSchemeKind
impl Serialize for WebhookSchemeKind
impl Copy for WebhookSchemeKind
impl Eq for WebhookSchemeKind
impl StructuralPartialEq for WebhookSchemeKind
Auto Trait Implementations§
impl Freeze for WebhookSchemeKind
impl RefUnwindSafe for WebhookSchemeKind
impl Send for WebhookSchemeKind
impl Sync for WebhookSchemeKind
impl Unpin for WebhookSchemeKind
impl UnsafeUnpin for WebhookSchemeKind
impl UnwindSafe for WebhookSchemeKind
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