#[non_exhaustive]
pub struct DirectMessageConfiguration { pub adm_message: Option<AdmMessage>, pub apns_message: Option<ApnsMessage>, pub baidu_message: Option<BaiduMessage>, pub default_message: Option<DefaultMessage>, pub default_push_notification_message: Option<DefaultPushNotificationMessage>, pub email_message: Option<EmailMessage>, pub gcm_message: Option<GcmMessage>, pub sms_message: Option<SmsMessage>, pub voice_message: Option<VoiceMessage>, }
Expand description

Specifies the settings and content for the default message and any default messages that you tailored for specific channels.

Fields (Non-exhaustive)

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
adm_message: Option<AdmMessage>

The default push notification message for the ADM (Amazon Device Messaging) channel. This message overrides the default push notification message (DefaultPushNotificationMessage).

apns_message: Option<ApnsMessage>

The default push notification message for the APNs (Apple Push Notification service) channel. This message overrides the default push notification message (DefaultPushNotificationMessage).

baidu_message: Option<BaiduMessage>

The default push notification message for the Baidu (Baidu Cloud Push) channel. This message overrides the default push notification message (DefaultPushNotificationMessage).

default_message: Option<DefaultMessage>

The default message for all channels.

default_push_notification_message: Option<DefaultPushNotificationMessage>

The default push notification message for all push notification channels.

email_message: Option<EmailMessage>

The default message for the email channel. This message overrides the default message (DefaultMessage).

gcm_message: Option<GcmMessage>

The default push notification message for the GCM channel, which is used to send notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service. This message overrides the default push notification message (DefaultPushNotificationMessage).

sms_message: Option<SmsMessage>

The default message for the SMS channel. This message overrides the default message (DefaultMessage).

voice_message: Option<VoiceMessage>

The default message for the voice channel. This message overrides the default message (DefaultMessage).

Implementations

The default push notification message for the ADM (Amazon Device Messaging) channel. This message overrides the default push notification message (DefaultPushNotificationMessage).

The default push notification message for the APNs (Apple Push Notification service) channel. This message overrides the default push notification message (DefaultPushNotificationMessage).

The default push notification message for the Baidu (Baidu Cloud Push) channel. This message overrides the default push notification message (DefaultPushNotificationMessage).

The default message for all channels.

The default push notification message for all push notification channels.

The default message for the email channel. This message overrides the default message (DefaultMessage).

The default push notification message for the GCM channel, which is used to send notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service. This message overrides the default push notification message (DefaultPushNotificationMessage).

The default message for the SMS channel. This message overrides the default message (DefaultMessage).

The default message for the voice channel. This message overrides the default message (DefaultMessage).

Creates a new builder-style object to manufacture DirectMessageConfiguration

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more