Struct aws_sdk_pinpoint::model::SmsMessage
source · [−]#[non_exhaustive]pub struct SmsMessage {
pub body: Option<String>,
pub keyword: Option<String>,
pub media_url: Option<String>,
pub message_type: Option<MessageType>,
pub origination_number: Option<String>,
pub sender_id: Option<String>,
pub substitutions: Option<HashMap<String, Vec<String>>>,
pub entity_id: Option<String>,
pub template_id: Option<String>,
}
Expand description
Specifies the default settings for a one-time SMS message that's sent directly to an endpoint.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.body: Option<String>
The body of the SMS message.
keyword: Option<String>
The SMS program name that you provided to AWS Support when you requested your dedicated number.
media_url: Option<String>
This field is reserved for future use.
message_type: Option<MessageType>
The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such as marketing messages).
origination_number: Option<String>
The number to send the SMS message from. This value should be one of the dedicated long or short codes that's assigned to your AWS account. If you don't specify a long or short code, Amazon Pinpoint assigns a random long code to the SMS message and sends the message from that code.
sender_id: Option<String>
The sender ID to display as the sender of the message on a recipient's device. Support for sender IDs varies by country or region.
substitutions: Option<HashMap<String, Vec<String>>>
The message variables to use in the SMS message. You can override the default variables with individual address variables.
entity_id: Option<String>
The entity ID or Principal Entity (PE) id received from the regulatory body for sending SMS in your country.
template_id: Option<String>
The template ID received from the regulatory body for sending SMS in your country.
Implementations
The SMS program name that you provided to AWS Support when you requested your dedicated number.
The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such as marketing messages).
The number to send the SMS message from. This value should be one of the dedicated long or short codes that's assigned to your AWS account. If you don't specify a long or short code, Amazon Pinpoint assigns a random long code to the SMS message and sends the message from that code.
The sender ID to display as the sender of the message on a recipient's device. Support for sender IDs varies by country or region.
The message variables to use in the SMS message. You can override the default variables with individual address variables.
The entity ID or Principal Entity (PE) id received from the regulatory body for sending SMS in your country.
The template ID received from the regulatory body for sending SMS in your country.
Creates a new builder-style object to manufacture SmsMessage
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for SmsMessage
impl Send for SmsMessage
impl Sync for SmsMessage
impl Unpin for SmsMessage
impl UnwindSafe for SmsMessage
Blanket Implementations
Mutably borrows from an owned value. Read more
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