mail_parser

Trait MimeHeaders

Source
pub trait MimeHeaders<'x> {
    // Required methods
    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<'_>;
    fn get_content_location(&self) -> Option<&str>;

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

MIME Header field access trait

Required Methods§

Source

fn get_content_description(&self) -> Option<&str>

Returns the Content-Description field

Source

fn get_content_disposition(&self) -> Option<&ContentType<'_>>

Returns the Content-Disposition field

Source

fn get_content_id(&self) -> Option<&str>

Returns the Content-ID field

Source

fn get_content_transfer_encoding(&self) -> Option<&str>

Returns the Content-Encoding field

Source

fn get_content_type(&self) -> Option<&ContentType<'_>>

Returns the Content-Type field

Source

fn get_content_language(&self) -> &HeaderValue<'_>

Returns the Content-Language field

Source

fn get_content_location(&self) -> Option<&str>

Returns the Content-Location field

Provided Methods§

Source

fn get_attachment_name(&self) -> Option<&str>

Returns the attachment name, if any.

Implementors§

Source§

impl<'x> MimeHeaders<'x> for Message<'x>

Source§

impl<'x> MimeHeaders<'x> for MessagePart<'x>