pub struct NotificationSetting {
pub id: NotificationSettingID,
pub description: String,
pub type: NotificationSettingType,
pub destination: String,
pub active: bool,
pub api_version: i64,
pub include_sensitive_fields: bool,
pub subscribed_events: Vec<EventType>,
pub endpoint_secret_key: EndpointSecretKey,
pub traffic_source: TrafficSource,
}
Expand description
Represents a notification destination.
Fields§
§id: NotificationSettingID
Unique Paddle ID for this notification setting, prefixed with ntfset_
.
description: String
Short description for this notification destination. Shown in the Paddle dashboard.
type: NotificationSettingType
Where notifications should be sent for this destination.
destination: String
Webhook endpoint URL or email address.
active: bool
Whether Paddle should try to deliver events to this notification destination.
api_version: i64
API version that returned objects for events should conform to. Must be a valid version of the Paddle API. Can’t be a version older than your account default.
include_sensitive_fields: bool
Whether potentially sensitive fields should be sent to this notification destination.
subscribed_events: Vec<EventType>
Subscribed events for this notification destination.
endpoint_secret_key: EndpointSecretKey
Webhook destination secret key, prefixed with pdl_ntfset_
. Used for signature verification.
traffic_source: TrafficSource
Whether Paddle should deliver real platform events, simulation events or both to this notification destination.
Trait Implementations§
Source§impl Clone for NotificationSetting
impl Clone for NotificationSetting
Source§fn clone(&self) -> NotificationSetting
fn clone(&self) -> NotificationSetting
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more