Struct iron::headers::From [-] [+] [src]

pub struct From(pub String);

From header, defined in RFC7231

The From header field contains an Internet email address for a human user who controls the requesting user agent. The address ought to be machine-usable.

ABNF

From    = mailbox
mailbox = <mailbox, see [RFC5322], Section 3.4>

Trait Implementations

impl Deref for From

type Target = String

fn deref(&'a self) -> &'a String

impl DerefMut for From

fn deref_mut(&'a mut self) -> &'a mut String

impl Header for From

fn header_name() -> &'static str

fn parse_header(raw: &[Vec<u8>]) -> Option<From>

impl HeaderFormat for From

fn fmt_header(&self, f: &mut Formatter) -> Result<(), Error>

impl Display for From

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

Derived Implementations

impl PartialEq<From> for From

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

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

impl Debug for From

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

impl Clone for From

fn clone(&self) -> From

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