pub enum MimeType {
Show 22 variants
TextCss,
TextHtml,
TextJavaScript,
TextPlain,
ImageBmp,
ImageGif,
ImageJpeg,
ImagePng,
ImageWebp,
ImageSvg,
ImageIcon,
ApplicationOctetStream,
ApplicationJson,
ApplicationPdf,
ApplicationZip,
VideoMp4,
VideoOgg,
VideoWebm,
FontTtf,
FontOtf,
FontWoff,
FontWoff2,
}Expand description
Represents a MIME type as used in the Content-Type header.
Variants§
TextCss
The text/css MIME type.
TextHtml
The text/html MIME type.
TextJavaScript
The text/javascript MIME type.
TextPlain
The text/plain MIME type.
ImageBmp
The image/bmp MIME type.
ImageGif
The image/gif MIME type.
ImageJpeg
The image/jpeg MIME type.
ImagePng
The image/png MIME type.
ImageWebp
The image/webp MIME type.
ImageSvg
The image/svg+xml MIME type.
ImageIcon
The image/vnd.microsoft.icon MIME type.
ApplicationOctetStream
The application/octet-stream MIME type.
ApplicationJson
The application/json MIME type.
ApplicationPdf
The application/pdf MIME type.
ApplicationZip
The application/zip MIME type.
VideoMp4
The video/mp4 MIME type.
VideoOgg
The video/ogg MIME type.
VideoWebm
The video/webm MIME type.
FontTtf
The font/ttf MIME type.
FontOtf
The font/otf MIME type.
FontWoff
The font/woff MIME type.
FontWoff2
The font/woff2 MIME type.
Implementations§
Trait Implementations§
impl Copy for MimeType
Auto Trait Implementations§
impl Freeze for MimeType
impl RefUnwindSafe for MimeType
impl Send for MimeType
impl Sync for MimeType
impl Unpin for MimeType
impl UnwindSafe for MimeType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more