Struct imap_types::rfc3501::body::MultiPartExtensionData
source · [−]pub struct MultiPartExtensionData<'a> {
pub parameter_list: Vec<(IString<'a>, IString<'a>)>,
pub disposition: Option<Option<(IString<'a>, Vec<(IString<'a>, IString<'a>)>)>>,
pub language: Option<Vec<IString<'a>>>,
pub location: Option<NString<'a>>,
pub extension: Cow<'a, [u8]>,
}Expand description
The extension data of a multipart body part are in the following order:
Trace (not in RFC)
(
("text" "html" ("charset" "us-ascii") NIL NIL "7bit" 28 0 NIL NIL NIL NIL)
("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 11 0 NIL NIL NIL NIL)
"mixed" ("boundary" "xxx") NIL NIL NIL
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| extension multipart data
)Fields
parameter_list: Vec<(IString<'a>, IString<'a>)>body parameter parenthesized list
A parenthesized list of attribute/value pairs [e.g., (“foo” “bar” “baz” “rag”) where “bar” is the value of “foo”, and “rag” is the value of “baz”] as defined in [MIME-IMB].
disposition: Option<Option<(IString<'a>, Vec<(IString<'a>, IString<'a>)>)>>body disposition
A parenthesized list, consisting of a disposition type string, followed by a parenthesized list of disposition attribute/value pairs as defined in [DISPOSITION].
language: Option<Vec<IString<'a>>>body language
A string or parenthesized list giving the body language value as defined in [LANGUAGE-TAGS].
location: Option<NString<'a>>body location
A string list giving the body content URI as defined in [LOCATION].
extension: Cow<'a, [u8]>Trait Implementations
sourceimpl<'a> Clone for MultiPartExtensionData<'a>
impl<'a> Clone for MultiPartExtensionData<'a>
sourcefn clone(&self) -> MultiPartExtensionData<'a>
fn clone(&self) -> MultiPartExtensionData<'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 MultiPartExtensionData<'a>
impl<'a> Debug for MultiPartExtensionData<'a>
sourceimpl<'a> Encode for MultiPartExtensionData<'a>
impl<'a> Encode for MultiPartExtensionData<'a>
sourceimpl<'a> Hash for MultiPartExtensionData<'a>
impl<'a> Hash for MultiPartExtensionData<'a>
sourceimpl<'a> PartialEq<MultiPartExtensionData<'a>> for MultiPartExtensionData<'a>
impl<'a> PartialEq<MultiPartExtensionData<'a>> for MultiPartExtensionData<'a>
sourcefn eq(&self, other: &MultiPartExtensionData<'a>) -> bool
fn eq(&self, other: &MultiPartExtensionData<'a>) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &MultiPartExtensionData<'a>) -> bool
fn ne(&self, other: &MultiPartExtensionData<'a>) -> bool
This method tests for !=.
impl<'a> Eq for MultiPartExtensionData<'a>
impl<'a> StructuralEq for MultiPartExtensionData<'a>
impl<'a> StructuralPartialEq for MultiPartExtensionData<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for MultiPartExtensionData<'a>
impl<'a> Send for MultiPartExtensionData<'a>
impl<'a> Sync for MultiPartExtensionData<'a>
impl<'a> Unpin for MultiPartExtensionData<'a>
impl<'a> UnwindSafe for MultiPartExtensionData<'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