Enum imap_types::response::data::SpecificFields
source · [−]pub enum SpecificFields<'a> {
Basic {
type_: IString<'a>,
subtype: IString<'a>,
},
Message {
envelope: Envelope<'a>,
body_structure: Box<BodyStructure<'a>>,
number_of_lines: u32,
},
Text {
subtype: IString<'a>,
number_of_lines: u32,
},
}Variants
Basic
Fields
type_: IString<'a>A string giving the content media type name as defined in [MIME-IMB].
subtype: IString<'a>A string giving the content subtype name as defined in [MIME-IMB].
Example (not in RFC)
Single application/{voodoo, unknown, whatever, meh} is represented as “basic”
(
"application" "voodoo" NIL NIL NIL "7bit" 20
^^^ ^^^ ^^^ ^^^^^^ ^^
| | | | | size
| | | | content transfer encoding
| | | description
| | id
| parameter list
NIL NIL NIL NIL
^^^ ^^^ ^^^ ^^^
| | | | location
| | | language
| | disposition
| md5
)Message
Fields
envelope: Envelope<'a>the envelope structure,
body_structure: Box<BodyStructure<'a>>body structure,
number_of_lines: u32and size in text lines of the encapsulated message.
Example (not in RFC)
Single message/rfc822 is represented as “message”
(
"message" "rfc822" NIL NIL NIL "7bit" 123
^^^ ^^^ ^^^ ^^^^^^ ^^^
| | | | | size
| | | | content transfer encoding
| | | description
| | id
| parameter list
(
NIL "message.inner.subject.ljcwooqy" ((NIL NIL "extern" "company.com")) ((NIL NIL "extern" "company.com")) ((NIL NIL "extern" "company.com")) ((NIL NIL "admin" "seurity.com")) NIL NIL NIL NIL
)
(
"text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 31
2
NIL NIL NIL NIL
)
6
^
| number of lines
NIL NIL NIL NIL
^^^ ^^^ ^^^ ^^^
| | | | location
| | | language
| | disposition
| md5
)A body type of type MESSAGE and subtype RFC822 contains, immediately after the basic fields,
Text
Example (not in RFC)
Single text/plain is represented as “text”
(
"text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 25
^^^^^^^^^^^^^^^^^^^^^^ ^^^ ^^^ ^^^^^^ ^^
| | | | | size
| | | | content transfer encoding
| | | description
| | id
| parameter list
1
^
| number of lines
NIL NIL NIL NIL
^^^ ^^^ ^^^ ^^^
| | | | location
| | | language
| | disposition
| md5
)A body type of type TEXT contains, immediately after the basic fields,
Trait Implementations
sourceimpl<'a> Clone for SpecificFields<'a>
impl<'a> Clone for SpecificFields<'a>
sourcefn clone(&self) -> SpecificFields<'a>
fn clone(&self) -> SpecificFields<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<'a> Debug for SpecificFields<'a>
impl<'a> Debug for SpecificFields<'a>
sourceimpl<'a> Hash for SpecificFields<'a>
impl<'a> Hash for SpecificFields<'a>
sourceimpl<'a> PartialEq<SpecificFields<'a>> for SpecificFields<'a>
impl<'a> PartialEq<SpecificFields<'a>> for SpecificFields<'a>
sourcefn eq(&self, other: &SpecificFields<'a>) -> bool
fn eq(&self, other: &SpecificFields<'a>) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &SpecificFields<'a>) -> bool
fn ne(&self, other: &SpecificFields<'a>) -> bool
This method tests for !=.
impl<'a> Eq for SpecificFields<'a>
impl<'a> StructuralEq for SpecificFields<'a>
impl<'a> StructuralPartialEq for SpecificFields<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for SpecificFields<'a>
impl<'a> Send for SpecificFields<'a>
impl<'a> Sync for SpecificFields<'a>
impl<'a> Unpin for SpecificFields<'a>
impl<'a> UnwindSafe for SpecificFields<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more