Trait deltachat::headerdef::HeaderDefMap

source ·
pub trait HeaderDefMap {
    // Required methods
    fn get_header_value(&self, headerdef: HeaderDef) -> Option<String>;
    fn get_header(&self, headerdef: HeaderDef) -> Option<&MailHeader<'_>>;
}

Required Methods§

source

fn get_header_value(&self, headerdef: HeaderDef) -> Option<String>

Returns requested header value if it exists.

source

fn get_header(&self, headerdef: HeaderDef) -> Option<&MailHeader<'_>>

Returns requested header if it exists.

Implementations on Foreign Types§

source§

impl HeaderDefMap for [MailHeader<'_>]

source§

fn get_header_value(&self, headerdef: HeaderDef) -> Option<String>

source§

fn get_header(&self, headerdef: HeaderDef) -> Option<&MailHeader<'_>>

Implementors§