mime 0.0.4

Strongly Typed Mimes
docs.rs failed to build mime-0.0.4
Please check the build logs and, if you believe this is docs.rs' fault, open an issue.


Mime is now Media Type, technically, but Mime is more immediately understandable, so the main type here is Mime.

What is Mime?

Example mime string: text/plain;charset=utf-8

# use std::str::FromStr;
# use mime::Mime;
# use mime::TopLevel::Text;
# use mime::SubLevel::Plain;
# use mime::Attr::Charset;
# use mime::Value::Utf8;
let mime: Mime = FromStr::from_str("text/plain;charset=utf-8").unwrap();
assert_eq!(mime, Mime(Text, Plain, vec![(Charset, Utf8)]));