Struct mailparse::ParsedContentDisposition
source · pub struct ParsedContentDisposition {
pub disposition: DispositionType,
pub params: BTreeMap<String, String>,
}
Expand description
A struct to hold a more structured representation of the Content-Disposition header. This is provided mostly as a convenience since this metadata is usually needed to interpret the message body properly.
Fields§
§disposition: DispositionType
The disposition type of the Content-Disposition header. If this is an extension type, the string will be lowercased.
params: BTreeMap<String, String>
The additional params of Content-Disposition, e.g. filename. The keys in the map will be lowercased, and the values will have any enclosing quotes stripped.
Trait Implementations§
source§impl Debug for ParsedContentDisposition
impl Debug for ParsedContentDisposition
source§impl Default for ParsedContentDisposition
impl Default for ParsedContentDisposition
source§fn default() -> ParsedContentDisposition
fn default() -> ParsedContentDisposition
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ParsedContentDisposition
impl RefUnwindSafe for ParsedContentDisposition
impl Send for ParsedContentDisposition
impl Sync for ParsedContentDisposition
impl Unpin for ParsedContentDisposition
impl UnwindSafe for ParsedContentDisposition
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