pub struct Fetch {
pub message: Seq,
pub uid: Option<Uid>,
pub size: Option<u32>,
// some fields omitted
}
An IMAP FETCH
response that contains
data about a particular message. This response occurs as the result of a FETCH
or STORE
command, as well as by unilateral server decision (e.g., flag updates).
The ordinal number of this message in its containing mailbox.
A number expressing the unique identifier of the message.
Only present if UID
was specified in the query argument to FETCH
and the server
supports UIDs.
A number expressing the RFC-2822 size of the message.
Only present if RFC822.SIZE
was specified in the query argument to FETCH
.
A list of flags that are set for this message.
The bytes that make up the header of this message, if BODY[HEADER]
, BODY.PEEK[HEADER]
,
or RFC822.HEADER
was included in the query
argument to FETCH
.
The bytes that make up this message, included if BODY[]
or RFC822
was included in the
query
argument to FETCH
. The bytes SHOULD be interpreted by the client according to the
content transfer encoding, body type, and subtype.
The bytes that make up the text of this message, included if BODY[TEXT]
, RFC822.TEXT
,
or BODY.PEEK[TEXT]
was included in the query
argument to FETCH
. The bytes SHOULD be
interpreted by the client according to the content transfer encoding, body type, and
subtype.
The envelope of this message, if ENVELOPE
was included in the query
argument to
FETCH
. This is computed by the server by parsing the
RFC-2822 header into the component parts, defaulting
various fields as necessary.
The full description of the format of the envelope is given in RFC 3501 section
7.4.2.
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Formats the value using the given formatter. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static