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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.