Trait email::FromHeader [] [src]

pub trait FromHeader: Sized {
    fn from_header(value: String) -> ParsingResult<Self>;
}

Trait for converting from RFC822 Header values into Rust types.

Required Methods

fn from_header(value: String) -> ParsingResult<Self>

Parse the value of the header.

Returns None if the value failed to be parsed

Implementors