pub enum WebhookError {
MissingSignature,
StaleTimestamp,
BadSignature,
BadJson,
}Variants§
MissingSignature
Stripe-Signature header missing or malformed.
StaleTimestamp
Timestamp older than 5 min or newer than 5 min — replay protection per Stripe’s docs.
BadSignature
HMAC-SHA256 mismatch — payload was tampered with or the secret is wrong.
BadJson
Body wasn’t valid JSON.
Trait Implementations§
Source§impl Clone for WebhookError
impl Clone for WebhookError
Source§fn clone(&self) -> WebhookError
fn clone(&self) -> WebhookError
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 WebhookError
impl Debug for WebhookError
Source§impl Display for WebhookError
impl Display for WebhookError
Source§impl PartialEq for WebhookError
impl PartialEq for WebhookError
impl Eq for WebhookError
impl StructuralPartialEq for WebhookError
Auto Trait Implementations§
impl Freeze for WebhookError
impl RefUnwindSafe for WebhookError
impl Send for WebhookError
impl Sync for WebhookError
impl Unpin for WebhookError
impl UnsafeUnpin for WebhookError
impl UnwindSafe for WebhookError
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