Enum imap_types::message::Flag
source · [−]pub enum Flag<'a> {
Seen,
Answered,
Flagged,
Deleted,
Draft,
Recent,
NameAttribute(FlagNameAttribute<'a>),
Permanent,
Keyword(Atom<'a>),
Extension(Atom<'a>),
}Expand description
A list of zero or more named tokens associated with the message. A flag is set by its addition to this list, and is cleared by its removal. There are two types of flags in IMAP4rev1. A flag of either type can be permanent or session-only. TODO(#7): this struct is not very usable currently…
Variants
Seen
Message has been read (\Seen)
Answered
Message has been answered (\Answered)
Flagged
Message is “flagged” for urgent/special attention (\Flagged)
Deleted
Message is “deleted” for removal by later EXPUNGE (\Deleted)
Draft
Message has not completed composition (marked as a draft). (\Draft)
Recent
Message is “recently” arrived in this mailbox. (\Recent)
This session is the first session to have been notified about this message; if the session is read-write, subsequent sessions will not see \Recent set for this message. This flag can not be altered by the client.
NameAttribute(FlagNameAttribute<'a>)
Permanent
Indicates that it is possible to create new keywords by
attempting to store those flags in the mailbox. (\*)
Keyword(Atom<'a>)
A keyword is defined by the server implementation. Keywords do not begin with “". Servers MAY permit the client to define new keywords in the mailbox (see the description of the PERMANENTFLAGS response code for more information).
Extension(Atom<'a>)
Trait Implementations
impl<'a> Eq for Flag<'a>
impl<'a> StructuralEq for Flag<'a>
impl<'a> StructuralPartialEq for Flag<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Flag<'a>
impl<'a> Send for Flag<'a>
impl<'a> Sync for Flag<'a>
impl<'a> Unpin for Flag<'a>
impl<'a> UnwindSafe for Flag<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more