Expand description
§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
- doesn’t have a README.md on crates.io;
- hasn’t been updated for two years
- doesn’t support all MIME types listed in RFC 6838 by IETF;
- 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_
support evcxr_support
- Extra traits, structures for MIME types supported by
evcxr
. - mime_
support mime_support
- Methods and traits for working with MIME types from
mime
.
Structs§
- Application
- Type for
mime::APPLICATION
:mime::Name
- Application
Java Script - Type for
mime::APPLICATION_JAVASCRIPT
:mime::Mime
- Application
Java Script Utf8 - Type for
mime::APPLICATION_JAVASCRIPT_UTF_8
:mime::Mime
- Application
Json - Type for
mime::APPLICATION_JSON
:mime::Mime
- Application
Msgpack - Type for
mime::APPLICATION_MSGPACK
:mime::Mime
- Application
Octet Stream - Type for
mime::APPLICATION_OCTET_STREAM
:mime::Mime
- Application
Pdf - Type for
mime::APPLICATION_PDF
:mime::Mime
- Application
WwwForm UrlEncoded - 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
- Event
Stream - Type for
mime::EVENT_STREAM
:mime::Name
- Font
- Type for
mime::FONT
:mime::Name
- Font
Woff - Type for
mime::FONT_WOFF
:mime::Mime
- Font
Woff2 - Type for
mime::FONT_WOFF2
:mime::Mime
- Form
Data - 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
- Image
Bmp - Type for
mime::IMAGE_BMP
:mime::Mime
- Image
Gif - Type for
mime::IMAGE_GIF
:mime::Mime
- Image
Jpeg - Type for
mime::IMAGE_JPEG
:mime::Mime
- Image
Png - Type for
mime::IMAGE_PNG
:mime::Mime
- Image
Star - Type for
mime::IMAGE_STAR
:mime::Mime
- Image
Svg - Type for
mime::IMAGE_SVG
:mime::Mime
- Java
Script - 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
- Multipart
Form Data - Type for
mime::MULTIPART_FORM_DATA
:mime::Mime
- Octet
Stream - Type for
mime::OCTET_STREAM
:mime::Name
- Ogg
- Type for
mime::OGG
:mime::Name
- 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
- Star
Star - 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
- Text
CssUtf8 - Type for
mime::TEXT_CSS_UTF_8
:mime::Mime
- TextCsv
- Type for
mime::TEXT_CSV
:mime::Mime
- Text
CsvUtf8 - Type for
mime::TEXT_CSV_UTF_8
:mime::Mime
- Text
Event Stream - Type for
mime::TEXT_EVENT_STREAM
:mime::Mime
- Text
Html - Type for
mime::TEXT_HTML
:mime::Mime
- Text
Html Utf8 - Type for
mime::TEXT_HTML_UTF_8
:mime::Mime
- Text
Java Script - Type for
mime::TEXT_JAVASCRIPT
:mime::Mime
- Text
Plain - Type for
mime::TEXT_PLAIN
:mime::Mime
- Text
Plain Utf8 - Type for
mime::TEXT_PLAIN_UTF_8
:mime::Mime
- Text
Star - Type for
mime::TEXT_STAR
:mime::Mime
- Text
TabSeparated Values - Type for
mime::TEXT_TAB_SEPARATED_VALUES
:mime::Mime
- Text
TabSeparated Values Utf8 - Type for
mime::TEXT_TAB_SEPARATED_VALUES_UTF_8
:mime::Mime
- Text
Vcard - 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
- WwwForm
UrlEncoded - Type for
mime::WWW_FORM_URLENCODED
:mime::Name
- Xml
- Type for
mime::XML
:mime::Name
Traits§
- Mime
- Its implementors are MIME types
- Mime
StrExt - Every its implementor has an associated string slice representation of the MIME type known at compile time.