pub struct Notification {
pub id: NotificationID,
pub type: EventTypeName,
pub status: NotificationStatus,
pub payload: NotificationPayload,
pub occurred_at: DateTime<FixedOffset>,
pub delivered_at: Option<DateTime<FixedOffset>>,
pub replayed_at: Option<DateTime<FixedOffset>>,
pub origin: NotificationOrigin,
pub last_attempt_at: Option<DateTime<FixedOffset>>,
pub retry_at: Option<DateTime<FixedOffset>>,
pub times_attempted: i64,
pub notification_setting_id: NotificationSettingID,
}
Expand description
Represents a notification entity.
Fields§
§id: NotificationID
Unique Paddle ID for this notification, prefixed with ntf_
.
type: EventTypeName
Type of event sent by Paddle, in the format entity.event_type
.
status: NotificationStatus
Status of this notification.
payload: NotificationPayload
§occurred_at: DateTime<FixedOffset>
RFC 3339 datetime string.
delivered_at: Option<DateTime<FixedOffset>>
RFC 3339 datetime string of when this notification was delivered. null
if not yet delivered successfully.
replayed_at: Option<DateTime<FixedOffset>>
RFC 3339 datetime string of when this notification was replayed. null
if not replayed.
origin: NotificationOrigin
Describes how this notification was created.
last_attempt_at: Option<DateTime<FixedOffset>>
RFC 3339 datetime string of when this notification was last attempted.
retry_at: Option<DateTime<FixedOffset>>
RFC 3339 datetime string of when this notification is scheduled to be retried.
times_attempted: i64
How many times delivery of this notification has been attempted. Automatically incremented by Paddle after an attempt.
notification_setting_id: NotificationSettingID
Unique Paddle ID for this notification setting, prefixed with ntfset_
.
Trait Implementations§
Source§impl Clone for Notification
impl Clone for Notification
Source§fn clone(&self) -> Notification
fn clone(&self) -> Notification
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more