pub enum StandardWebhookRejection<E> {
FailedToBufferBody(FailedToBufferBody),
FailedToVerifyWebhook(WebhookError),
FailedToExtractBody(E),
}Expand description
Represents the ways in which webhook verification and extraction can fail. Represents the ways in which webhook verification and extraction can fail.
This enum combines errors from body buffering, webhook verification, and the extraction of the inner type.
Variants§
FailedToBufferBody(FailedToBufferBody)
The request body could not be buffered.
FailedToVerifyWebhook(WebhookError)
The webhook signature could not be verified.
FailedToExtractBody(E)
The request body could not be extracted into the desired type.
Trait Implementations§
Source§impl<E: Debug> Debug for StandardWebhookRejection<E>
impl<E: Debug> Debug for StandardWebhookRejection<E>
Source§impl<E> IntoResponse for StandardWebhookRejection<E>where
E: IntoResponse,
impl<E> IntoResponse for StandardWebhookRejection<E>where
E: IntoResponse,
Source§fn into_response(self) -> Response<Body>
fn into_response(self) -> Response<Body>
Create a response.
Auto Trait Implementations§
impl<E> Freeze for StandardWebhookRejection<E>where
E: Freeze,
impl<E> !RefUnwindSafe for StandardWebhookRejection<E>
impl<E> Send for StandardWebhookRejection<E>where
E: Send,
impl<E> Sync for StandardWebhookRejection<E>where
E: Sync,
impl<E> Unpin for StandardWebhookRejection<E>where
E: Unpin,
impl<E> !UnwindSafe for StandardWebhookRejection<E>
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