pub struct NotificationPayload {
pub notification_id: NotificationID,
pub event_id: EventID,
pub event_type: EventTypeName,
pub occurred_at: String,
pub data: HashMap<String, String>,
}
Expand description
Notification payload. Includes the new or changed event.
Fields§
§notification_id: NotificationID
Unique Paddle ID for this notification, prefixed with ntf_
.
event_id: EventID
Unique Paddle ID for this event, prefixed with evt_
.
event_type: EventTypeName
Type of event sent by Paddle, in the format entity.event_type
.
occurred_at: String
RFC 3339 datetime string.
data: HashMap<String, String>
New or changed entity.
Trait Implementations§
Source§impl Clone for NotificationPayload
impl Clone for NotificationPayload
Source§fn clone(&self) -> NotificationPayload
fn clone(&self) -> NotificationPayload
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 NotificationPayload
impl Debug for NotificationPayload
Source§impl<'de> Deserialize<'de> for NotificationPayload
impl<'de> Deserialize<'de> for NotificationPayload
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
Auto Trait Implementations§
impl Freeze for NotificationPayload
impl RefUnwindSafe for NotificationPayload
impl Send for NotificationPayload
impl Sync for NotificationPayload
impl Unpin for NotificationPayload
impl UnwindSafe for NotificationPayload
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