pub struct MailItem {Show 17 fields
pub account: String,
pub id: String,
pub thread_id: String,
pub folder: Folder,
pub from: MessageFrom,
pub to: Vec<MessageFrom>,
pub cc: Vec<MessageFrom>,
pub subject: String,
pub received_at: DateTime<Utc>,
pub preview: String,
pub unread: bool,
pub flagged: bool,
pub has_attachments: bool,
pub categories: Vec<String>,
pub bulk_hint: Option<BulkHint>,
pub list_unsubscribe: bool,
pub is_invite: bool,
}Expand description
A message’s metadata: what the index stores and what lists show.
Fields§
§account: String§id: StringThe provider’s stable id.
thread_id: String§folder: Folder§from: MessageFrom§to: Vec<MessageFrom>§cc: Vec<MessageFrom>§subject: String§received_at: DateTime<Utc>§preview: String§unread: bool§flagged: bool§has_attachments: bool§categories: Vec<String>§bulk_hint: Option<BulkHint>§list_unsubscribe: boolThe message carries a List-Unsubscribe header (when the provider
returns headers in lists; Gmail does, Graph does not).
is_invite: boolTrait Implementations§
Source§impl<'de> Deserialize<'de> for MailItem
impl<'de> Deserialize<'de> for MailItem
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MailItem
impl StructuralPartialEq for MailItem
Auto Trait Implementations§
impl Forget for MailItem
impl Freeze for MailItem
impl Move for MailItem
impl RefUnwindSafe for MailItem
impl Send for MailItem
impl Sync for MailItem
impl Unpin for MailItem
impl UnsafeUnpin for MailItem
impl UnwindSafe for MailItem
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.