#[non_exhaustive]pub enum WebhookVerificationReason {
InvalidRawBody,
InvalidSecret,
MissingSignature,
MissingTimestamp,
DuplicateHeader,
NonAsciiHeader,
UnsupportedSignatureScheme,
UnparseableTimestamp,
SignatureMismatch,
TimestampOutsideTolerance,
}Expand description
Why webhook verification failed.
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.
InvalidRawBody
The body passed is not usable as the raw body.
InvalidSecret
The secret is empty.
MissingSignature
No X-Webhook-Signature header.
MissingTimestamp
No X-Webhook-Timestamp header.
DuplicateHeader
A webhook header appears more than once.
NonAsciiHeader
A webhook header contains characters outside printable ASCII.
UnsupportedSignatureScheme
The signature does not start with sha256=.
UnparseableTimestamp
The timestamp is not RFC 3339 (Unix seconds are rejected too).
SignatureMismatch
The signature does not match.
TimestampOutsideTolerance
The timestamp is further away from now than the tolerance.
Implementations§
Trait Implementations§
Source§impl Clone for WebhookVerificationReason
impl Clone for WebhookVerificationReason
impl Copy for WebhookVerificationReason
Source§impl Debug for WebhookVerificationReason
impl Debug for WebhookVerificationReason
Source§impl Display for WebhookVerificationReason
impl Display for WebhookVerificationReason
impl Eq for WebhookVerificationReason
Source§impl Hash for WebhookVerificationReason
impl Hash for WebhookVerificationReason
impl StructuralPartialEq for WebhookVerificationReason
Auto Trait Implementations§
impl Forget for WebhookVerificationReason
impl Freeze for WebhookVerificationReason
impl Move for WebhookVerificationReason
impl RefUnwindSafe for WebhookVerificationReason
impl Send for WebhookVerificationReason
impl Sync for WebhookVerificationReason
impl Unpin for WebhookVerificationReason
impl UnsafeUnpin for WebhookVerificationReason
impl UnwindSafe for WebhookVerificationReason
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