Registry / serialization / mime
library0.3.17rscratesunverified

Strongly typed MIME types for Rust, providing parsing and representation of media types.

# Cargo.toml [dependencies] mime = "0.3.17"
INSTALL
IMPORT
SIG · MIME
M
mime
serializationrustv0.3.17
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Mime
use mime::Mime;

Parses a MIME type string into a strongly typed Mime value.

use mime::Mime; let mime: Mime = "text/html; charset=utf-8".parse().unwrap(); assert_eq!(mime.type_(), mime::TEXT); assert_eq!(mime.subtype(), mime::HTML);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.17latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
mime — cargo add mime · libregistry