pub enum Folder {
Inbox,
Sent,
Drafts,
Trash,
Spam,
Archive,
Custom(String),
}Expand description
An IMAP mailbox folder.
Well-known folders have dedicated variants that map to their
standard IMAP names. For user-created folders, use
Folder::custom.
§Examples
use protonmail_client::Folder;
let inbox = Folder::Inbox;
assert_eq!(inbox.as_str(), "INBOX");
let custom = Folder::custom("My Projects");
assert_eq!(custom.as_str(), "My Projects");Variants§
Inbox
The INBOX folder (RFC 3501 required, case-insensitive).
Sent
Sent messages.
Drafts
Draft messages.
Trash
Deleted messages.
Spam
Spam / junk messages.
Archive
Archived messages.
Custom(String)
A user-defined or server-specific folder.
Implementations§
Trait Implementations§
impl Eq for Folder
impl StructuralPartialEq for Folder
Auto Trait Implementations§
impl Freeze for Folder
impl RefUnwindSafe for Folder
impl Send for Folder
impl Sync for Folder
impl Unpin for Folder
impl UnwindSafe for Folder
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