Struct aws_sdk_sesv2::types::Contact
source · #[non_exhaustive]pub struct Contact {
pub email_address: Option<String>,
pub topic_preferences: Option<Vec<TopicPreference>>,
pub topic_default_preferences: Option<Vec<TopicPreference>>,
pub unsubscribe_all: bool,
pub last_updated_timestamp: Option<DateTime>,
}Expand description
A contact is the end-user who is receiving the email.
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.email_address: Option<String>The contact's email address.
topic_preferences: Option<Vec<TopicPreference>>The contact's preference for being opted-in to or opted-out of a topic.
topic_default_preferences: Option<Vec<TopicPreference>>The default topic preferences applied to the contact.
unsubscribe_all: boolA boolean value status noting if the contact is unsubscribed from all contact list topics.
last_updated_timestamp: Option<DateTime>A timestamp noting the last time the contact's information was updated.
Implementations§
source§impl Contact
impl Contact
sourcepub fn email_address(&self) -> Option<&str>
pub fn email_address(&self) -> Option<&str>
The contact's email address.
sourcepub fn topic_preferences(&self) -> &[TopicPreference]
pub fn topic_preferences(&self) -> &[TopicPreference]
The contact's preference for being opted-in to or opted-out of a topic.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .topic_preferences.is_none().
sourcepub fn topic_default_preferences(&self) -> &[TopicPreference]
pub fn topic_default_preferences(&self) -> &[TopicPreference]
The default topic preferences applied to the contact.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .topic_default_preferences.is_none().
sourcepub fn unsubscribe_all(&self) -> bool
pub fn unsubscribe_all(&self) -> bool
A boolean value status noting if the contact is unsubscribed from all contact list topics.
sourcepub fn last_updated_timestamp(&self) -> Option<&DateTime>
pub fn last_updated_timestamp(&self) -> Option<&DateTime>
A timestamp noting the last time the contact's information was updated.