pub trait MimeHeaders<'x> {
    fn get_content_description(&self) -> Option<&str>;
    fn get_content_disposition(&self) -> Option<&ContentType<'_>>;
    fn get_content_id(&self) -> Option<&str>;
    fn get_content_transfer_encoding(&self) -> Option<&str>;
    fn get_content_type(&self) -> Option<&ContentType<'_>>;
    fn get_content_language(&self) -> &HeaderValue<'x>;
    fn get_content_location(&self) -> Option<&str>;

    fn get_attachment_name(&self) -> Option<&str> { ... }
}
Expand description

MIME Header field access trait

Required Methods

Returns the Content-Description field

Returns the Content-Disposition field

Returns the Content-ID field

Returns the Content-Encoding field

Returns the Content-Type field

Returns the Content-Language field

Returns the Content-Location field

Provided Methods

Returns the attachment name, if any.

Implementors