#[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
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.
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 body of the SMS message.

The SMS program name that you provided to AWS Support when you requested your dedicated number.

This field is reserved for future use.

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

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