[−][src]Struct mailparse::ParsedContentType
A struct to hold a more structured representation of the Content-Type header. This is provided mostly as a convenience since this metadata is usually needed to interpret the message body properly.
Fields
mimetype: StringThe type of the data, for example "text/plain" or "application/pdf".
charset: StringThe charset used to decode the raw byte data, for example "iso-8859-1" or "utf-8".
params: BTreeMap<String, String>The additional params of Content-Type, e.g. filename and boundary. The keys in the map will be lowercased, and the values will have any enclosing quotes stripped.
Trait Implementations
impl Debug for ParsedContentType[src]
impl Default for ParsedContentType[src]
Auto Trait Implementations
impl RefUnwindSafe for ParsedContentType
impl Send for ParsedContentType
impl Sync for ParsedContentType
impl Unpin for ParsedContentType
impl UnwindSafe for ParsedContentType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,