Enum imap_types::message::PartSpecifier
source · pub enum PartSpecifier<'a> {
PartNumber(u32),
Header,
HeaderFields(NonEmptyVec<AString<'a>>),
HeaderFieldsNot(NonEmptyVec<AString<'a>>),
Mime,
Text,
}Expand description
A part specifier is either a part number or one of the following:
HEADER, HEADER.FIELDS, HEADER.FIELDS.NOT, MIME, and TEXT.
The HEADER, HEADER.FIELDS, and HEADER.FIELDS.NOT part specifiers refer to the [RFC-2822] header of the message or of an encapsulated [MIME-IMT] MESSAGE/RFC822 message. HEADER.FIELDS and HEADER.FIELDS.NOT are followed by a list of field-name (as defined in [RFC-2822]) names, and return a subset of the header.
The field-matching is case-insensitive but otherwise exact. Subsetting does not exclude the [RFC-2822] delimiting blank line between the header and the body; the blank line is included in all header fetches, except in the case of a message which has no body and no blank line.
Variants§
PartNumber(u32)
Header
HeaderFields(NonEmptyVec<AString<'a>>)
HeaderFieldsNot(NonEmptyVec<AString<'a>>)
Mime
Text
Trait Implementations§
source§impl<'a> Clone for PartSpecifier<'a>
impl<'a> Clone for PartSpecifier<'a>
source§fn clone(&self) -> PartSpecifier<'a>
fn clone(&self) -> PartSpecifier<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'a> Debug for PartSpecifier<'a>
impl<'a> Debug for PartSpecifier<'a>
source§impl<'a> Hash for PartSpecifier<'a>
impl<'a> Hash for PartSpecifier<'a>
source§impl<'a> PartialEq<PartSpecifier<'a>> for PartSpecifier<'a>
impl<'a> PartialEq<PartSpecifier<'a>> for PartSpecifier<'a>
source§fn eq(&self, other: &PartSpecifier<'a>) -> bool
fn eq(&self, other: &PartSpecifier<'a>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.