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

pub struct AcceptCharset(pub Vec<QualityItem<Charset>>);

Accept-Charset header, defined in RFC7231

The Accept-Charset header field can be sent by a user agent to indicate what charsets are acceptable in textual response content. This field allows user agents capable of understanding more comprehensive or special-purpose charsets to signal that capability to an origin server that is capable of representing information in those charsets.

ABNF

Accept-Charset = 1#( ( charset / "*" ) [ weight ] )

Example values

Trait Implementations

impl Deref for AcceptCharset

type Target = Vec<QualityItem<Charset>>

fn deref(&'a self) -> &'a Vec<QualityItem<Charset>>

impl DerefMut for AcceptCharset

fn deref_mut(&'a mut self) -> &'a mut Vec<QualityItem<Charset>>

impl Header for AcceptCharset

fn header_name() -> &'static str

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

impl HeaderFormat for AcceptCharset

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

impl Display for AcceptCharset

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

Derived Implementations

impl PartialEq<AcceptCharset> for AcceptCharset

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

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

impl Debug for AcceptCharset

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

impl Clone for AcceptCharset

fn clone(&self) -> AcceptCharset

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