pub enum MimeType {
Image(Image),
Video(Video),
Audio(Audio),
Archive(Archive),
Book(Book),
Document(Document),
Font(Font),
Application(Application),
}Expand description
Main MIME type enum containing all supported categories.
This enum wraps the specific MIME type categories (Image, Video, Audio, etc.) and implements conversion from file extensions and MIME strings.
Variants§
Image(Image)
Image formats (JPEG, PNG, GIF, etc.)
Video(Video)
Video formats (MP4, MKV, WebM, etc.)
Audio(Audio)
Audio formats (MP3, FLAC, WAV, etc.)
Archive(Archive)
Archive and compressed formats (ZIP, TAR, RAR, etc.)
Book(Book)
E-book formats (EPUB, MOBI)
Document(Document)
Document formats (DOC, PDF, XLS, etc.)
Font(Font)
Font formats (TTF, OTF, WOFF, etc.)
Application(Application)
Application and executable formats (EXE, WASM, ELF, etc.)
Trait Implementations§
Source§impl MimeFormat for MimeType
impl MimeFormat for MimeType
impl Eq for MimeType
impl StructuralPartialEq 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