pub struct MailEntry { /* private fields */ }
Expand description
This struct represents a single email message inside the maildir. Creation of the struct does not automatically load the content of the email file into memory - however, that may happen upon calling functions that require parsing the email.
Implementations§
source§impl MailEntry
impl MailEntry
pub fn id(&self) -> &str
pub fn parsed(&mut self) -> Result<MimePart<'_>, MailEntryError>
pub fn headers(&mut self) -> Result<HeaderMap<'_>, MailEntryError>
pub fn received(&mut self) -> Result<DateTime<FixedOffset>, MailEntryError>
pub fn date(&mut self) -> Result<DateTime<FixedOffset>, MailEntryError>
pub fn flags(&self) -> &str
pub fn is_draft(&self) -> bool
pub fn is_flagged(&self) -> bool
pub fn is_passed(&self) -> bool
pub fn is_replied(&self) -> bool
pub fn is_seen(&self) -> bool
pub fn is_trashed(&self) -> bool
pub fn path(&self) -> &PathBuf
Auto Trait Implementations§
impl Freeze for MailEntry
impl RefUnwindSafe for MailEntry
impl Send for MailEntry
impl Sync for MailEntry
impl Unpin for MailEntry
impl UnwindSafe for MailEntry
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