Struct hyper::header::common::user_agent::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(_: Option<UserAgent>) -> &'static str

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

impl HeaderFormat for UserAgent

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

Derived Implementations

impl Show 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)