Struct imap_types::rfc3501::body::SinglePartExtensionData
source · [−]pub struct SinglePartExtensionData<'a> {
pub md5: NString<'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 non-multipart body part are in the following order:
Fields
md5: NString<'a>A string giving the body MD5 value as defined in [MD5].
disposition: Option<Option<(IString<'a>, Vec<(IString<'a>, IString<'a>)>)>>A parenthesized list with the same content and function as the body disposition for a multipart body part.
language: Option<Vec<IString<'a>>>A string or parenthesized list giving the body language value as defined in [LANGUAGE-TAGS].
location: Option<NString<'a>>A string list giving the body content URI as defined in [LOCATION].
extension: Cow<'a, [u8]>Trait Implementations
sourceimpl<'a> Clone for SinglePartExtensionData<'a>
impl<'a> Clone for SinglePartExtensionData<'a>
sourcefn clone(&self) -> SinglePartExtensionData<'a>
fn clone(&self) -> SinglePartExtensionData<'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 SinglePartExtensionData<'a>
impl<'a> Debug for SinglePartExtensionData<'a>
sourceimpl<'a> Encode for SinglePartExtensionData<'a>
impl<'a> Encode for SinglePartExtensionData<'a>
sourceimpl<'a> Hash for SinglePartExtensionData<'a>
impl<'a> Hash for SinglePartExtensionData<'a>
sourceimpl<'a> PartialEq<SinglePartExtensionData<'a>> for SinglePartExtensionData<'a>
impl<'a> PartialEq<SinglePartExtensionData<'a>> for SinglePartExtensionData<'a>
sourcefn eq(&self, other: &SinglePartExtensionData<'a>) -> bool
fn eq(&self, other: &SinglePartExtensionData<'a>) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &SinglePartExtensionData<'a>) -> bool
fn ne(&self, other: &SinglePartExtensionData<'a>) -> bool
This method tests for !=.
impl<'a> Eq for SinglePartExtensionData<'a>
impl<'a> StructuralEq for SinglePartExtensionData<'a>
impl<'a> StructuralPartialEq for SinglePartExtensionData<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for SinglePartExtensionData<'a>
impl<'a> Send for SinglePartExtensionData<'a>
impl<'a> Sync for SinglePartExtensionData<'a>
impl<'a> Unpin for SinglePartExtensionData<'a>
impl<'a> UnwindSafe for SinglePartExtensionData<'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