pub enum FetchAttribute<'a> {
Flags(Vec<&'a str>),
InternalDate(&'a str),
Rfc822Size(u32),
Rfc822(&'a [u8]),
Rfc822Header(&'a [u8]),
Rfc822Text(&'a [u8]),
Envelope(&'a [u8]),
Body(&'a [u8]),
BodyStructure(&'a [u8]),
BodySection {
section: Option<&'a str>,
origin: Option<u32>,
data: Option<&'a [u8]>,
},
Uid(u32),
}Expand description
A single attribute returned in a FETCH data response.
Variants§
Flags(Vec<&'a str>)
FLAGS — the flags set on the message.
InternalDate(&'a str)
INTERNALDATE — the server-side receipt timestamp (raw quoted string).
Rfc822Size(u32)
RFC822.SIZE — the message size in octets.
Rfc822(&'a [u8])
Full RFC822 message (legacy alias for BODY[]).
Rfc822Header(&'a [u8])
RFC822.HEADER — the message header (legacy alias for BODY[HEADER]).
Rfc822Text(&'a [u8])
RFC822.TEXT — the message body text (legacy alias for BODY[TEXT]).
Envelope(&'a [u8])
Parsed-form ENVELOPE bytes (raw, including outer parens).
Body(&'a [u8])
BODY (no section) — non-extensible body structure as raw bytes.
BodyStructure(&'a [u8])
BODYSTRUCTURE — extensible body structure as raw bytes.
BodySection
BODY[<section>]<<origin>> with the data as raw bytes.
Fields
Uid(u32)
UID — the unique identifier of the message.
Trait Implementations§
Source§impl<'a> Debug for FetchAttribute<'a>
impl<'a> Debug for FetchAttribute<'a>
Source§impl<'a> PartialEq for FetchAttribute<'a>
impl<'a> PartialEq for FetchAttribute<'a>
Source§fn eq(&self, other: &FetchAttribute<'a>) -> bool
fn eq(&self, other: &FetchAttribute<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> Eq for FetchAttribute<'a>
impl<'a> StructuralPartialEq for FetchAttribute<'a>
Auto Trait Implementations§
impl<'a> Freeze for FetchAttribute<'a>
impl<'a> RefUnwindSafe for FetchAttribute<'a>
impl<'a> Send for FetchAttribute<'a>
impl<'a> Sync for FetchAttribute<'a>
impl<'a> Unpin for FetchAttribute<'a>
impl<'a> UnsafeUnpin for FetchAttribute<'a>
impl<'a> UnwindSafe for FetchAttribute<'a>
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