pub struct Email { /* private fields */ }Expand description
Event details relating to an email transaction.
This field set focuses on the email message header, body, and attachments. Network protocols that send and receive email messages such as SMTP are outside the scope of the email.* fields.
Implementations§
Source§impl Email
impl Email
Sourcepub fn get_attachments(&self) -> &Vec<String>
pub fn get_attachments(&self) -> &Vec<String>
A list of objects describing the attachment files sent along with an email message.
Sourcepub fn add_attachment(&mut self, attachment_arg: String)
pub fn add_attachment(&mut self, attachment_arg: String)
A list of objects describing the attachment files sent along with an email message.
Sourcepub fn get_attachments_file_extension(&self) -> Option<&String>
pub fn get_attachments_file_extension(&self) -> Option<&String>
Attachment file extension, excluding the leading dot.
Sourcepub fn set_attachments_file_extension(
&mut self,
attachments_file_extension_arg: String,
)
pub fn set_attachments_file_extension( &mut self, attachments_file_extension_arg: String, )
Sourcepub fn get_attachments_file_mime_type(&self) -> Option<&String>
pub fn get_attachments_file_mime_type(&self) -> Option<&String>
The MIME media type of the attachment.
This value will typically be extracted from the Content-Type MIME header field.
Sourcepub fn set_attachments_file_mime_type(
&mut self,
attachments_file_mime_type_arg: String,
)
pub fn set_attachments_file_mime_type( &mut self, attachments_file_mime_type_arg: String, )
The MIME media type of the attachment.
This value will typically be extracted from the Content-Type MIME header field.
§Example
text/plain
Sourcepub fn get_attachments_file_name(&self) -> Option<&String>
pub fn get_attachments_file_name(&self) -> Option<&String>
Name of the attachment file including the file extension.
Sourcepub fn set_attachments_file_name(&mut self, attachments_file_name_arg: String)
pub fn set_attachments_file_name(&mut self, attachments_file_name_arg: String)
Sourcepub fn get_attachments_file_size(&self) -> Option<&u64>
pub fn get_attachments_file_size(&self) -> Option<&u64>
Attachment file size in bytes.
Sourcepub fn set_attachments_file_size(&mut self, attachments_file_size_arg: u64)
pub fn set_attachments_file_size(&mut self, attachments_file_size_arg: u64)
Sourcepub fn get_bcc_address(&self) -> &Vec<String>
pub fn get_bcc_address(&self) -> &Vec<String>
The email address of BCC recipient
Sourcepub fn add_bcc_addres(&mut self, bcc_addres_arg: String)
pub fn add_bcc_addres(&mut self, bcc_addres_arg: String)
Sourcepub fn get_cc_address(&self) -> &Vec<String>
pub fn get_cc_address(&self) -> &Vec<String>
The email address of CC recipient
Sourcepub fn add_cc_addres(&mut self, cc_addres_arg: String)
pub fn add_cc_addres(&mut self, cc_addres_arg: String)
Sourcepub fn get_content_type(&self) -> Option<&String>
pub fn get_content_type(&self) -> Option<&String>
Information about how the message is to be displayed.
Typically a MIME type.
Sourcepub fn set_content_type(&mut self, content_type_arg: String)
pub fn set_content_type(&mut self, content_type_arg: String)
Sourcepub fn get_delivery_timestamp(&self) -> Option<&Timestamp>
pub fn get_delivery_timestamp(&self) -> Option<&Timestamp>
The date and time when the email message was received by the service or client.
Sourcepub fn set_delivery_timestamp(&mut self, delivery_timestamp_arg: Timestamp)
pub fn set_delivery_timestamp(&mut self, delivery_timestamp_arg: Timestamp)
The date and time when the email message was received by the service or client.
§Example
2020-11-10T22:12:34.8196921Z
Sourcepub fn get_direction(&self) -> Option<&String>
pub fn get_direction(&self) -> Option<&String>
The direction of the message based on the sending and receiving domains.
Sourcepub fn set_direction(&mut self, direction_arg: String)
pub fn set_direction(&mut self, direction_arg: String)
Sourcepub fn get_from_address(&self) -> &Vec<String>
pub fn get_from_address(&self) -> &Vec<String>
The email address of the sender, typically from the RFC 5322 From: header field.
Sourcepub fn add_from_addres(&mut self, from_addres_arg: String)
pub fn add_from_addres(&mut self, from_addres_arg: String)
The email address of the sender, typically from the RFC 5322 From: header field.
§Example
sender@example.com
Sourcepub fn get_local_id(&self) -> Option<&String>
pub fn get_local_id(&self) -> Option<&String>
Unique identifier given to the email by the source that created the event.
Identifier is not persistent across hops.
Sourcepub fn set_local_id(&mut self, local_id_arg: String)
pub fn set_local_id(&mut self, local_id_arg: String)
Unique identifier given to the email by the source that created the event.
Identifier is not persistent across hops.
§Example
c26dbea0-80d5-463b-b93c-4e8b708219ce
Sourcepub fn get_message_id(&self) -> Option<&String>
pub fn get_message_id(&self) -> Option<&String>
Identifier from the RFC 5322 Message-ID: email header that refers to a particular email message.
Sourcepub fn set_message_id(&mut self, message_id_arg: String)
pub fn set_message_id(&mut self, message_id_arg: String)
Identifier from the RFC 5322 Message-ID: email header that refers to a particular email message.
§Example
81ce15$8r2j59@mail01.example.com
Sourcepub fn get_origination_timestamp(&self) -> Option<&Timestamp>
pub fn get_origination_timestamp(&self) -> Option<&Timestamp>
The date and time the email message was composed. Many email clients will fill in this value automatically when the message is sent by a user.
Sourcepub fn set_origination_timestamp(
&mut self,
origination_timestamp_arg: Timestamp,
)
pub fn set_origination_timestamp( &mut self, origination_timestamp_arg: Timestamp, )
The date and time the email message was composed. Many email clients will fill in this value automatically when the message is sent by a user.
§Example
2020-11-10T22:12:34.8196921Z
Sourcepub fn get_reply_to_address(&self) -> &Vec<String>
pub fn get_reply_to_address(&self) -> &Vec<String>
The address that replies should be delivered to based on the value in the RFC 5322 Reply-To: header.
Sourcepub fn add_reply_to_addres(&mut self, reply_to_addres_arg: String)
pub fn add_reply_to_addres(&mut self, reply_to_addres_arg: String)
The address that replies should be delivered to based on the value in the RFC 5322 Reply-To: header.
§Example
reply.here@example.com
Sourcepub fn get_sender_address(&self) -> Option<&String>
pub fn get_sender_address(&self) -> Option<&String>
Per RFC 5322, specifies the address responsible for the actual transmission of the message.
Sourcepub fn set_sender_address(&mut self, sender_address_arg: String)
pub fn set_sender_address(&mut self, sender_address_arg: String)
Per RFC 5322, specifies the address responsible for the actual transmission of the message.
Sourcepub fn get_subject(&self) -> Option<&String>
pub fn get_subject(&self) -> Option<&String>
A brief summary of the topic of the message.
Sourcepub fn set_subject(&mut self, subject_arg: String)
pub fn set_subject(&mut self, subject_arg: String)
Sourcepub fn get_to_address(&self) -> &Vec<String>
pub fn get_to_address(&self) -> &Vec<String>
The email address of recipient
Sourcepub fn add_to_addres(&mut self, to_addres_arg: String)
pub fn add_to_addres(&mut self, to_addres_arg: String)
Sourcepub fn get_x_mailer(&self) -> Option<&String>
pub fn get_x_mailer(&self) -> Option<&String>
The name of the application that was used to draft and send the original email message.
Sourcepub fn set_x_mailer(&mut self, x_mailer_arg: String)
pub fn set_x_mailer(&mut self, x_mailer_arg: String)
The name of the application that was used to draft and send the original email message.
§Example
Spambot v2.5