Struct hyper::header::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>(&'a self) -> &'a String

impl DerefMut for From

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

impl Header for From

fn header_name() -> &'static str

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

impl HeaderFormat for From

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

impl Display for From

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

Derived Implementations

impl PartialEq 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

impl Clone for From

fn clone(&self) -> From

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