pub enum SignatureError {
Empty,
InvalidFormat,
InvalidPartFormat,
ParseError,
MaxVarianceExceeded(Duration),
}
Expand description
Error generated when validating webhook signatures
Variants§
Empty
No signature provided
InvalidFormat
Invalid signature format
InvalidPartFormat
A part of the signature is invalid
ParseError
Unable to extract timestamp or signature
MaxVarianceExceeded(Duration)
Generated when the signature was calculated earlier in time then allowed
Trait Implementations§
Source§impl Debug for SignatureError
impl Debug for SignatureError
Auto Trait Implementations§
impl Freeze for SignatureError
impl RefUnwindSafe for SignatureError
impl Send for SignatureError
impl Sync for SignatureError
impl Unpin for SignatureError
impl UnwindSafe for SignatureError
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