Struct mailparse::ParsedContentDisposition [−][src]
pub struct ParsedContentDisposition {
pub disposition: DispositionType,
pub params: BTreeMap<String, String>,
}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
impl Debug for ParsedContentDisposition[src]
impl Debug for ParsedContentDispositionfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for ParsedContentDisposition[src]
impl Default for ParsedContentDispositionfn default() -> ParsedContentDisposition[src]
fn default() -> ParsedContentDispositionReturns the "default value" for a type. Read more
Auto Trait Implementations
impl Send for ParsedContentDisposition
impl Send for ParsedContentDispositionimpl Sync for ParsedContentDisposition
impl Sync for ParsedContentDisposition