Struct hyper::header::Language [] [src]

pub struct Language {
    pub primary: String,
    pub sub: Option<String>,
}

A language tag. See http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.10

Note: This is no complete language tag implementation, it should be replaced with github.com/pyfisch/rust-language-tag once it is ready.

Fields

primary

The language tag

sub

A language subtag or country code

Trait Implementations

impl FromStr for Language

type Err = Error

fn from_str(s: &str) -> Result<Language>

impl Display for Language

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

Derived Implementations

impl Debug for Language

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

impl PartialEq for Language

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

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

impl Clone for Language

fn clone(&self) -> Language

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