Struct hyper::header::UserAgent [-] [+] [src]

pub struct UserAgent(pub String);

The User-Agent header field.

They can contain any value, so it just wraps a String.

Trait Implementations

impl Deref for UserAgent

type Target = String

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

impl DerefMut for UserAgent

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

impl Header for UserAgent

fn header_name() -> &'static str

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

impl HeaderFormat for UserAgent

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

impl Display for UserAgent

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

impl Deref for UserAgent

type Target = String

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

impl DerefMut for UserAgent

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

impl Header for UserAgent

fn header_name() -> &'static str

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

impl HeaderFormat for UserAgent

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

impl Display for UserAgent

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

Derived Implementations

impl Debug for UserAgent

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

impl PartialEq for UserAgent

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

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

impl Clone for UserAgent

fn clone(&self) -> UserAgent

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

impl Debug for UserAgent

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

impl PartialEq for UserAgent

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

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

impl Clone for UserAgent

fn clone(&self) -> UserAgent

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