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 moreSource§impl Debug for MsgraphMessage
impl Debug for MsgraphMessage
Source§impl Default for MsgraphMessage
impl Default for MsgraphMessage
Source§fn default() -> MsgraphMessage
fn default() -> MsgraphMessage
Source§impl<'de> Deserialize<'de> for MsgraphMessage
impl<'de> Deserialize<'de> for MsgraphMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for MsgraphMessage
Source§impl JsonSchema for MsgraphMessage
Available on crate feature schemars only.
impl JsonSchema for MsgraphMessage
schemars only.Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more