Enum imap_proto::types::AttributeValue[][src]

#[non_exhaustive]
pub enum AttributeValue<'a> {
    BodySection {
        section: Option<SectionPath>,
        index: Option<u32>,
        data: Option<Cow<'a, [u8]>>,
    },
    BodyStructure(BodyStructure<'a>),
    Envelope(Box<Envelope<'a>>),
    Flags(Vec<Cow<'a, str>>),
    InternalDate(Cow<'a, str>),
    ModSeq(u64),
    Rfc822(Option<Cow<'a, [u8]>>),
    Rfc822Header(Option<Cow<'a, [u8]>>),
    Rfc822Size(u32),
    Rfc822Text(Option<Cow<'a, [u8]>>),
    Uid(u32),
}

Variants (Non-exhaustive)

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BodySection

Fields of BodySection

section: Option<SectionPath>index: Option<u32>data: Option<Cow<'a, [u8]>>
BodyStructure

Tuple Fields of BodyStructure

0: BodyStructure<'a>
Envelope

Tuple Fields of Envelope

0: Box<Envelope<'a>>
Flags

Tuple Fields of Flags

0: Vec<Cow<'a, str>>
InternalDate

Tuple Fields of InternalDate

0: Cow<'a, str>
ModSeq

Tuple Fields of ModSeq

0: u64
Rfc822

Tuple Fields of Rfc822

0: Option<Cow<'a, [u8]>>
Rfc822Header

Tuple Fields of Rfc822Header

0: Option<Cow<'a, [u8]>>
Rfc822Size

Tuple Fields of Rfc822Size

0: u32
Rfc822Text

Tuple Fields of Rfc822Text

0: Option<Cow<'a, [u8]>>
Uid

Tuple Fields of Uid

0: u32

Implementations

Trait Implementations

Formats the value using the given formatter. 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

Performs the conversion.

Performs the conversion.

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.