pub enum MimeType {
Show 75 variants
Other(String),
Blob,
Aac,
Flac,
Midi,
Mp3,
Oga,
Opus,
Wav,
Weba,
Avi,
Mp4,
Mpeg,
Ogv,
Ts,
WebmVideo,
ThreeGp,
ThreeG2,
Apng,
Avif,
Bmp,
Gif,
Ico,
Jpg,
Png,
Qoi,
Svg,
Tiff,
Webp,
Text,
Css,
Csv,
Html,
Javascript,
Json,
JsonLd,
Xml,
Pdf,
Rtf,
Arc,
Bz,
Bz2,
Gz,
Jar,
Ogg,
Rar,
SevenZ,
Tar,
Zip,
Eot,
Otf,
Ttf,
Woff,
Woff2,
Abiword,
Azw,
Cda,
Csh,
Doc,
Docx,
Epub,
Ics,
Mpkg,
Odp,
Ods,
Odt,
Php,
Ppt,
Pptx,
Sh,
Vsd,
Xhtml,
Xls,
Xlsx,
Xul,
}Expand description
A media type, conveniently parsed
Variants§
Other(String)
A mimetype we didn’t recognize
Blob
An unstructured binary blob (application/octet-stream)
Aac
AAC audio file (audio/aac)
Flac
FLAC audio file (audio/flac)
Midi
MIDI audio file (audio/midi)
Mp3
MP3 audio file (audio/mpeg)
Oga
OGG audio file (audio/ogg)
Opus
Opus audio file in Ogg container (audio/ogg)
Wav
Waveform Audio Format (audio/wav)
Weba
WEBM audio file (audio/webm)
Avi
AVI: Audio Video Interleave (video/x-msvideo)
Mp4
MP4 video file (video/mp4)
Mpeg
MPEG video file (video/mpeg)
Ogv
OGG video file (video/ogg)
Ts
MPEG transport stream (video/mp2t)
WebmVideo
WEBM video file (video/webm)
ThreeGp
3GPP audio/video container (video/3gpp)
ThreeG2
3GPP2 audio/video container (video/3gpp2)
Apng
Animated Portable Network Graphics (image/apng)
Avif
AVIF image (image/avif)
Bmp
Windows OS/2 Bitmap Graphics (image/bmp)
Gif
Graphics Interchange Format (image/gif)
Ico
Icon format (image/vnd.microsoft.icon)
Jpg
JPEG image (image/jpeg)
Png
Portable Network Graphics (image/png)
Qoi
Quite ok Image Format
Svg
Scalable Vector Graphics (image/svg+xml)
Tiff
Tagged Image File Format (image/tiff)
Webp
WEBP image (image/webp)
Text
Plain text (text/plain)
Css
Cascading Style Sheets (text/css)
Csv
Comma-separated values (text/csv)
Html
HyperText Markup Language (text/html)
Javascript
JavaScript (text/javascript)
Json
JSON format (application/json)
JsonLd
JSON-LD format (application/ld+json)
Xml
XML (application/xml)
Adobe Portable Document Format (application/pdf)
Rtf
Rich Text Format (application/rtf)
Arc
Archive document, multiple files embedded (application/x-freearc)
Bz
BZip archive (application/x-bzip)
Bz2
BZip2 archive (application/x-bzip2)
Gz
GZip Compressed Archive (application/gzip)
Jar
Java Archive (application/java-archive)
Ogg
OGG (application/ogg)
Rar
RAR archive (application/vnd.rar)
SevenZ
7-zip archive (application/x-7z-compressed)
Tar
Tape Archive (application/x-tar)
Zip
ZIP archive (application/zip)
Eot
MS Embedded OpenType fonts (application/vnd.ms-fontobject)
Otf
OpenType font (font/otf)
Ttf
TrueType Font (font/ttf)
Woff
Web Open Font Format (font/woff)
Woff2
Web Open Font Format 2 (font/woff2)
Abiword
AbiWord document (application/x-abiword)
Azw
Amazon Kindle eBook format (application/vnd.amazon.ebook)
Cda
CD audio (application/x-cdf)
Csh
C-Shell script (application/x-csh)
Doc
Microsoft Word (application/msword)
Docx
Microsoft Word OpenXML (application/vnd.openxmlformats-officedocument.wordprocessingml.document)
Epub
Electronic publication (application/epub+zip)
Ics
iCalendar format (text/calendar)
Mpkg
Apple Installer Package (application/vnd.apple.installer+xml)
Odp
OpenDocument presentation (application/vnd.oasis.opendocument.presentation)
Ods
OpenDocument spreadsheet (application/vnd.oasis.opendocument.spreadsheet)
Odt
OpenDocument text document (application/vnd.oasis.opendocument.text)
Php
Hypertext Preprocessor (application/x-httpd-php)
Ppt
Microsoft PowerPoint (application/vnd.ms-powerpoint)
Pptx
Microsoft PowerPoint OpenXML (application/vnd.openxmlformats-officedocument.presentationml.presentation)
Sh
Bourne shell script (application/x-sh)
Vsd
Microsoft Visio (application/vnd.visio)
Xhtml
XHTML (application/xhtml+xml)
Xls
Microsoft Excel (application/vnd.ms-excel)
Xlsx
Microsoft Excel OpenXML (application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
Xul
XUL (application/vnd.mozilla.xul+xml)
Implementations§
Source§impl MimeType
impl MimeType
Sourcepub const fn const_default() -> Self
pub const fn const_default() -> Self
Default::default, but const