pub struct StandardWebhooksLayer { /* private fields */ }Available on crate feature
webhooks only.Expand description
Signs every request with one or more secrets, as Standard Webhooks; see the module.
A request that already has a webhook-id or webhook-timestamp keeps it; any other gets a new id
(msg_<hex>) and the current time. The signature is always written, one per secret.
Implementations§
Source§impl StandardWebhooksLayer
impl StandardWebhooksLayer
Sourcepub fn new(secret: WebhookSecret) -> Self
pub fn new(secret: WebhookSecret) -> Self
Signs with secret.
Sourcepub fn with_secrets(secrets: impl IntoIterator<Item = WebhookSecret>) -> Self
pub fn with_secrets(secrets: impl IntoIterator<Item = WebhookSecret>) -> Self
Signs with every one of secrets (a secret being rotated, and its successor).
Trait Implementations§
Source§impl Clone for StandardWebhooksLayer
impl Clone for StandardWebhooksLayer
Source§impl Debug for StandardWebhooksLayer
impl Debug for StandardWebhooksLayer
Auto Trait Implementations§
impl Forget for StandardWebhooksLayer
impl Freeze for StandardWebhooksLayer
impl Move for StandardWebhooksLayer
impl RefUnwindSafe for StandardWebhooksLayer
impl Send for StandardWebhooksLayer
impl Sync for StandardWebhooksLayer
impl Unpin for StandardWebhooksLayer
impl UnsafeUnpin for StandardWebhooksLayer
impl UnwindSafe for StandardWebhooksLayer
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