pub struct MsgraphMessage {Show 21 fields
pub id: String,
pub subject: Option<String>,
pub body_preview: Option<String>,
pub body: Option<MsgraphItemBody>,
pub from: Option<MsgraphRecipient>,
pub sender: Option<MsgraphRecipient>,
pub to_recipients: Vec<MsgraphRecipient>,
pub cc_recipients: Vec<MsgraphRecipient>,
pub bcc_recipients: Vec<MsgraphRecipient>,
pub reply_to: Vec<MsgraphRecipient>,
pub received_date_time: Option<String>,
pub sent_date_time: Option<String>,
pub is_read: Option<bool>,
pub is_draft: Option<bool>,
pub has_attachments: Option<bool>,
pub internet_message_id: Option<String>,
pub importance: Option<MsgraphImportance>,
pub flag: Option<MsgraphFollowupFlag>,
pub categories: Vec<String>,
pub parent_folder_id: Option<String>,
pub conversation_id: Option<String>,
}Expand description
A message in a mail folder. Doubles as the create/update body, where only the set (non-empty) fields are serialized.
Fields§
§id: StringThe unique identifier of the message.
subject: Option<String>The subject of the message.
body_preview: Option<String>The first bytes of the body, in text format.
body: Option<MsgraphItemBody>The body of the message, in text or HTML format.
from: Option<MsgraphRecipient>The mailbox owner displayed as the author.
sender: Option<MsgraphRecipient>The account actually used to send the message.
to_recipients: Vec<MsgraphRecipient>The To recipients of the message.
cc_recipients: Vec<MsgraphRecipient>The Cc recipients of the message.
bcc_recipients: Vec<MsgraphRecipient>The Bcc recipients of the message.
reply_to: Vec<MsgraphRecipient>The addresses replies should be sent to.
received_date_time: Option<String>The reception date, as an ISO 8601 date-time.
sent_date_time: Option<String>The send date, as an ISO 8601 date-time.
is_read: Option<bool>Whether the message has been read.
is_draft: Option<bool>Whether the message is a draft.
has_attachments: Option<bool>Whether the message carries attachments.
internet_message_id: Option<String>The RFC 5322 Message-ID header of the message.
importance: Option<MsgraphImportance>The importance of the message.
flag: Option<MsgraphFollowupFlag>The follow-up flag set on the message.
categories: Vec<String>The categories associated with the message.
parent_folder_id: Option<String>The identifier of the containing mail folder.
conversation_id: Option<String>The identifier of the conversation the message belongs to.
Trait Implementations§
Source§impl Clone for MsgraphMessage
impl Clone for MsgraphMessage
Source§fn clone(&self) -> MsgraphMessage
fn clone(&self) -> MsgraphMessage
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more