Skip to main content

MsgraphMessage

Struct MsgraphMessage 

Source
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: String

The 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

Source§

fn clone(&self) -> MsgraphMessage

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MsgraphMessage

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for MsgraphMessage

Source§

fn default() -> MsgraphMessage

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for MsgraphMessage

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for MsgraphMessage

Source§

impl PartialEq for MsgraphMessage

Source§

fn eq(&self, other: &MsgraphMessage) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for MsgraphMessage

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for MsgraphMessage

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.