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: NotificationIDUnique Paddle ID for this notification, prefixed with ntf_.
event_id: EventIDUnique Paddle ID for this event, prefixed with evt_.
event_type: EventTypeNameType of event sent by Paddle, in the format entity.event_type.
occurred_at: StringRFC 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<NotificationPayload, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NotificationPayload, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for NotificationPayload
impl Serialize for NotificationPayload
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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