pub struct NotificationSettingCreate {
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<String>,
pub endpoint_secret_key: EndpointSecretKey,
pub traffic_source: TrafficSource,
}
Expand description
Represents a notification destination when creating notification destinations.
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. If omitted, defaults to your account default version.
include_sensitive_fields: bool
Whether potentially sensitive fields should be sent to this notification destination. If omitted, defaults to false
.
subscribed_events: Vec<String>
Subscribed events for this notification destination. When creating or updating a notification destination, pass an array of event type names only. Paddle returns the complete event type object.
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. If omitted, defaults to platform
.
Trait Implementations§
Source§impl Clone for NotificationSettingCreate
impl Clone for NotificationSettingCreate
Source§fn clone(&self) -> NotificationSettingCreate
fn clone(&self) -> NotificationSettingCreate
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more