Struct mailparse::ParsedContentType
source · pub struct ParsedContentType {
pub mimetype: String,
pub charset: String,
pub params: BTreeMap<String, String>,
}
Expand description
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: String
The type of the data, for example “text/plain” or “application/pdf”.
charset: String
The 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§
source§impl Debug for ParsedContentType
impl Debug for ParsedContentType
Auto Trait Implementations§
impl Freeze for ParsedContentType
impl RefUnwindSafe for ParsedContentType
impl Send for ParsedContentType
impl Sync for ParsedContentType
impl Unpin for ParsedContentType
impl UnwindSafe for ParsedContentType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more