pub struct WebhookEvent {
pub delivery_id: Option<String>,
pub webhook_id: Option<String>,
pub original_delivery_id: Option<String>,
pub is_redelivery: Option<bool>,
pub _type: Option<String>,
pub timestamp: Option<f32>,
}Fields§
§delivery_id: Option<String>The delivery id of the webhook
webhook_id: Option<String>The id of the webhook
original_delivery_id: Option<String>If this delivery is a redelivery, the is the delivery id of the original delivery.
is_redelivery: Option<bool>True if this delivery is a redelivery
_type: Option<String>The type of this event, current available are InvoiceCreated, InvoiceReceivedPayment, InvoiceProcessing, InvoiceExpired, InvoiceSettled, InvoiceInvalid, and InvoicePaymentSettled.
timestamp: Option<f32>The timestamp when this delivery has been created
Implementations§
Source§impl WebhookEvent
impl WebhookEvent
pub fn new() -> WebhookEvent
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 · 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 Default for WebhookEvent
impl Default for WebhookEvent
Source§fn default() -> WebhookEvent
fn default() -> WebhookEvent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WebhookEvent
impl<'de> Deserialize<'de> for WebhookEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WebhookEvent
impl PartialEq for WebhookEvent
Source§impl Serialize for WebhookEvent
impl Serialize 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 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