pub struct WebhookEvent { /* private fields */ }Expand description
Webhook event envelope metadata.
Implementations§
Source§impl WebhookEvent
impl WebhookEvent
Sourcepub const fn new(event: WebhookEventName, delivery_id: DeliveryId) -> Self
pub const fn new(event: WebhookEventName, delivery_id: DeliveryId) -> Self
Creates webhook event metadata.
Sourcepub const fn with_status(self, status: DeliveryStatus) -> Self
pub const fn with_status(self, status: DeliveryStatus) -> Self
Sets delivery status metadata.
Trait Implementations§
Source§impl Clone for WebhookEvent
impl Clone for WebhookEvent
Source§fn clone(&self) -> WebhookEvent
fn clone(&self) -> WebhookEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WebhookEvent
impl Debug for WebhookEvent
Source§impl PartialEq for WebhookEvent
impl PartialEq for WebhookEvent
Source§fn eq(&self, other: &WebhookEvent) -> bool
fn eq(&self, other: &WebhookEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for WebhookEvent
impl StructuralPartialEq for WebhookEvent
Auto Trait Implementations§
impl Freeze for WebhookEvent
impl RefUnwindSafe for WebhookEvent
impl Send for WebhookEvent
impl Sync for WebhookEvent
impl Unpin for WebhookEvent
impl UnsafeUnpin for WebhookEvent
impl UnwindSafe for WebhookEvent
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