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

pub struct ContentType(pub Mime);

The Content-Type header.

Used to describe the MIME type of message body. Can be used with both requests and responses.

Trait Implementations

impl Deref for ContentType

type Target = Mime

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

impl DerefMut for ContentType

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

impl Header for ContentType

fn header_name() -> &'static str

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

impl HeaderFormat for ContentType

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

impl Display for ContentType

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

impl Deref for ContentType

type Target = Mime

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

impl DerefMut for ContentType

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

impl Header for ContentType

fn header_name() -> &'static str

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

impl HeaderFormat for ContentType

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

impl Display for ContentType

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

Derived Implementations

impl Debug for ContentType

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

impl PartialEq for ContentType

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

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

impl Clone for ContentType

fn clone(&self) -> ContentType

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

impl Debug for ContentType

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

impl PartialEq for ContentType

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

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

impl Clone for ContentType

fn clone(&self) -> ContentType

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