pub struct MailItem {Show 18 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,
pub message_id: String,
}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: bool§message_id: StringThe internet Message-ID, when the provider gives it: the same for a message however the provider names it.
Trait 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 MailItemwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<MessageFrom>: Freeze,
NonZero<i32>: Freeze,
Utc: Freeze,
PhantomData<String>: Freeze,
impl Move for MailItem
impl RefUnwindSafe for MailItem
impl Send for MailItem
impl Sync for MailItem
impl Unpin for MailItem
impl UnsafeUnpin for MailItemwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<MessageFrom>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
Utc: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
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.