Struct email::Header [] [src]

pub struct Header {
    pub name: String,
    // some fields omitted
}

Represents an RFC 822 Header [unstable]

Fields

name

The name of this header

Methods

impl Header

fn new(name: String, value: String) -> Header

Creates a new Header for the given name and value [unstable]

fn new_with_value<T: ToFoldedHeader>(name: String, value: T) -> ParsingResult<Header>

Creates a new Header for the given name and value, as converted through the ToHeader or ToFoldedHeader trait.

Returns None if the value failed to be converted. [unstable]

fn get_value<T: FromHeader>(&self) -> ParsingResult<T>

Get the value represented by this header, as parsed into whichever type T [unstable]

Trait Implementations

impl Display for Header

fn fmt(&self, fmt: &mut Formatter) -> Result

Derived Implementations

impl Hash for Header

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Debug for Header

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for Header

fn clone(&self) -> Header

fn clone_from(&mut self, source: &Self)

impl Eq for Header

impl PartialEq for Header

fn eq(&self, __arg_0: &Header) -> bool

fn ne(&self, __arg_0: &Header) -> bool