Crate mime_typed

Source
Expand description

crates.io crates.io

§More types for mime

§What is mime library?

At the moment of writing, mime is the most widely used MIME types library on crates.io with over 39.4M all-time downloads and over 5.5M recent downloads.

Its notable dependents are

Even though mime

  1. doesn’t have a README.md on crates.io;
  2. hasn’t been updated for two years
  3. doesn’t support all MIME types listed in RFC 6838 by IETF;
  4. has last published version at https://github.com/hyperium/mime/tree/e3e7444ca607ff87cd1475455c26876b936af77a instead of latest commit;

it is nonetheless a reasonably well documented library that has been proven to be well suitable for many projects by its use.

§What does mime_typed bring to the table?

This library allows writing code generic over MIME types easier and has opt-in support for mime. With mime_support feature enabled, traits obtain new functions for returning instances of mime library types.

With evcxr_support feature, the crate also offers support for evcxr Rust kernel for Jupyter Notebook.

The types offered by library are zero-sized.

Opt-in support for other projects may be considered as well.

§License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Modules§

evcxr_supportevcxr_support
Extra traits, structures for MIME types supported by evcxr.
mime_supportmime_support
Methods and traits for working with MIME types from mime.

Structs§

Application
Type for mime::APPLICATION: mime::Name
ApplicationJavaScript
Type for mime::APPLICATION_JAVASCRIPT: mime::Mime
ApplicationJavaScriptUtf8
Type for mime::APPLICATION_JAVASCRIPT_UTF_8: mime::Mime
ApplicationJson
Type for mime::APPLICATION_JSON: mime::Mime
ApplicationMsgpack
Type for mime::APPLICATION_MSGPACK: mime::Mime
ApplicationOctetStream
Type for mime::APPLICATION_OCTET_STREAM: mime::Mime
ApplicationPdf
Type for mime::APPLICATION_PDF: mime::Mime
ApplicationWwwFormUrlEncoded
Type for mime::APPLICATION_WWW_FORM_URLENCODED: mime::Mime
Audio
Type for mime::AUDIO: mime::Name
Basic
Type for mime::BASIC: mime::Name
Bmp
Type for mime::BMP: mime::Name
Boundary
Type for mime::BOUNDARY: mime::Name
Charset
Type for mime::CHARSET: mime::Name
Css
Type for mime::CSS: mime::Name
Csv
Type for mime::CSV: mime::Name
EventStream
Type for mime::EVENT_STREAM: mime::Name
Font
Type for mime::FONT: mime::Name
FontWoff
Type for mime::FONT_WOFF: mime::Mime
FontWoff2
Type for mime::FONT_WOFF2: mime::Mime
FormData
Type for mime::FORM_DATA: mime::Name
Gif
Type for mime::GIF: mime::Name
Html
Type for mime::HTML: mime::Name
Image
Type for mime::IMAGE: mime::Name
ImageBmp
Type for mime::IMAGE_BMP: mime::Mime
ImageGif
Type for mime::IMAGE_GIF: mime::Mime
ImageJpeg
Type for mime::IMAGE_JPEG: mime::Mime
ImagePng
Type for mime::IMAGE_PNG: mime::Mime
ImageStar
Type for mime::IMAGE_STAR: mime::Mime
ImageSvg
Type for mime::IMAGE_SVG: mime::Mime
JavaScript
Type for mime::JAVASCRIPT: mime::Name
Jpeg
Type for mime::JPEG: mime::Name
Json
Type for mime::JSON: mime::Name
Message
Type for mime::MESSAGE: mime::Name
Model
Type for mime::MODEL: mime::Name
Mp4
Type for mime::MP4: mime::Name
Mpeg
Type for mime::MPEG: mime::Name
Msgpack
Type for mime::MSGPACK: mime::Name
Multipart
Type for mime::MULTIPART: mime::Name
MultipartFormData
Type for mime::MULTIPART_FORM_DATA: mime::Mime
OctetStream
Type for mime::OCTET_STREAM: mime::Name
Ogg
Type for mime::OGG: mime::Name
Pdf
Type for mime::PDF: mime::Name
Plain
Type for mime::PLAIN: mime::Name
Png
Type for mime::PNG: mime::Name
Star
Type for mime::STAR: mime::Name
StarStar
Type for mime::STAR_STAR: mime::Mime
Svg
Type for mime::SVG: mime::Name
Text
Type for mime::TEXT: mime::Name
TextCss
Type for mime::TEXT_CSS: mime::Mime
TextCssUtf8
Type for mime::TEXT_CSS_UTF_8: mime::Mime
TextCsv
Type for mime::TEXT_CSV: mime::Mime
TextCsvUtf8
Type for mime::TEXT_CSV_UTF_8: mime::Mime
TextEventStream
Type for mime::TEXT_EVENT_STREAM: mime::Mime
TextHtml
Type for mime::TEXT_HTML: mime::Mime
TextHtmlUtf8
Type for mime::TEXT_HTML_UTF_8: mime::Mime
TextJavaScript
Type for mime::TEXT_JAVASCRIPT: mime::Mime
TextPlain
Type for mime::TEXT_PLAIN: mime::Mime
TextPlainUtf8
Type for mime::TEXT_PLAIN_UTF_8: mime::Mime
TextStar
Type for mime::TEXT_STAR: mime::Mime
TextTabSeparatedValues
Type for mime::TEXT_TAB_SEPARATED_VALUES: mime::Mime
TextTabSeparatedValuesUtf8
Type for mime::TEXT_TAB_SEPARATED_VALUES_UTF_8: mime::Mime
TextVcard
Type for mime::TEXT_VCARD: mime::Mime
TextXml
Type for mime::TEXT_XML: mime::Mime
Utf8
Type for mime::UTF_8: mime::Name
VCard
Type for mime::VCARD: mime::Name
Video
Type for mime::VIDEO: mime::Name
Woff
Type for mime::WOFF: mime::Name
Woff2
Type for mime::WOFF2: mime::Name
WwwFormUrlEncoded
Type for mime::WWW_FORM_URLENCODED: mime::Name
Xml
Type for mime::XML: mime::Name

Traits§

Mime
Its implementors are MIME types
MimeStrExt
Every its implementor has an associated string slice representation of the MIME type known at compile time.