Struct imap::types::Mailbox

source ·
#[non_exhaustive]
pub struct Mailbox { pub flags: Vec<Flag<'static>>, pub exists: u32, pub recent: u32, pub unseen: Option<u32>, pub permanent_flags: Vec<Flag<'static>>, pub uid_next: Option<Uid>, pub uid_validity: Option<u32>, pub highest_mod_seq: Option<u64>, pub is_read_only: bool, }
Expand description

Meta-information about an IMAP mailbox, as returned by SELECT and friends.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§flags: Vec<Flag<'static>>

Defined flags in the mailbox. See the description of the FLAGS response for more detail.

§exists: u32

The number of messages in the mailbox. See the description of the EXISTS response for more detail.

§recent: u32

The number of messages with the \Recent flag set. See the description of the RECENT response for more detail.

§unseen: Option<u32>

The message sequence number of the first unseen message in the mailbox. If this is missing, the client can not make any assumptions about the first unseen message in the mailbox, and needs to issue a SEARCH command if it wants to find it.

§permanent_flags: Vec<Flag<'static>>

A list of message flags that the client can change permanently. If this is missing, the client should assume that all flags can be changed permanently. If the client attempts to STORE a flag that is not in this list list, the server will either ignore the change or store the state change for the remainder of the current session only.

§uid_next: Option<Uid>

The next unique identifier value. If this is missing, the client can not make any assumptions about the next unique identifier value.

§uid_validity: Option<u32>

The unique identifier validity value. See Uid for more details. If this is missing, the server does not support unique identifiers.

§highest_mod_seq: Option<u64>

The highest mod sequence for this mailbox. Used with Conditional STORE.

§is_read_only: bool

The mailbox is selected read-only, or its access while selected has changed from read-write to read-only.

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
Returns the “default value” for a type. 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 ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

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
Converts the given value to a String. 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.