Enum lader::Mime

source ·
pub enum Mime {
Show 74 variants AudioAAC, AudioMIDI, AudioMP3, AudioOGG, AudioOpus, AudioWAV, AudioWEBM, Audio3GPP, Audio3GPP2, ApplicationAbiword, ApplicationFreearc, ApplicationAmazonEbook, ApplicationOctet, ApplicationBZip, ApplicationBZip2, ApplicationCDF, ApplicationCSH, ApplicationDoc, ApplicationDocx, ApplicationMsfontobject, ApplicationEPUB, ApplicationGZip, ApplicationJava, ApplicationJSON, ApplicationLDJSON, ApplicationAppleInstaller, ApplicationOpendocumentPresentation, ApplicationOpendocumentSpreadsheet, ApplicationOpendocumentText, ApplicationOGG, ApplicationPDF, ApplicationPHP, ApplicationPpt, ApplicationPPTX, ApplicationRAR, ApplicationRTF, ApplicationSH, ApplicationTAR, ApplicationVisio, ApplicationXHTML, ApplicationXls, ApplicationXlsx, ApplicationXML, ApplicationXUL, ApplicationZIP, Application7Z, FontOTF, FontTTF, FontWOFF, FontWOFF2, ImageAVIF, ImageBMP, ImageGIF, ImageIcon, ImageJPEG, ImagePNG, ImageSVG, ImageTIF, ImageWEBP, TextCSS, TextCSV, TextHTML, TextCalendar, TextJavascript, TextJavascriptModule, TextPlain, VideoMsVideo, VideoMP4, VideoMPEG, VideoOGG, VideoMPEGTransport, VideoWEBM, Video3GPP, Video3GPP2,
}

Variants§

§

AudioAAC

AAC audio

§

AudioMIDI

Musical Instrument Digital Interface (MIDI)

§

AudioMP3

MP3 audio

§

AudioOGG

OGG audio

§

AudioOpus

Opus audio

§

AudioWAV

Waveform Audio Format

§

AudioWEBM

WEBM audio

§

Audio3GPP

3GPP audio container

§

Audio3GPP2

3GPP2 audio container

§

ApplicationAbiword

AbiWord document

§

ApplicationFreearc

Archive document (multiple files embedded)

§

ApplicationAmazonEbook

Amazon Kindle eBook format

§

ApplicationOctet

Any kind of binary data

§

ApplicationBZip

BZip archive

§

ApplicationBZip2

BZip2 archive

§

ApplicationCDF

CD audio

§

ApplicationCSH

C-Shell script

§

ApplicationDoc

Microsoft Word

§

ApplicationDocx

Microsoft Word (OpenXML)

§

ApplicationMsfontobject

MS Embedded OpenType fonts

§

ApplicationEPUB

Electronic publication (EPUB)

§

ApplicationGZip

GZip Compressed Archive

§

ApplicationJava

Java Archive (JAR)

§

ApplicationJSON

JSON format

§

ApplicationLDJSON

JSON-LD format

§

ApplicationAppleInstaller

Apple Installer Package

§

ApplicationOpendocumentPresentation

OpenDocument presentation document

§

ApplicationOpendocumentSpreadsheet

OpenDocument spreadsheet document

§

ApplicationOpendocumentText

OpenDocument text document

§

ApplicationOGG

OGG

§

ApplicationPDF

Adobe Portable Document Format (PDF)

§

ApplicationPHP

Hypertext Preprocessor (Personal Home Page)

§

ApplicationPpt

Microsoft PowerPoint

§

ApplicationPPTX

Microsoft PowerPoint (OpenXML)

§

ApplicationRAR

RAR archive

§

ApplicationRTF

Rich Text Format (RTF)

§

ApplicationSH

Bourne shell script

§

ApplicationTAR

Tape Archive (TAR)

§

ApplicationVisio

Microsoft Visio

§

ApplicationXHTML

XHTML

§

ApplicationXls

Microsoft Excel

§

ApplicationXlsx

Microsoft Excel (OpenXML)

§

ApplicationXML

XML

§

ApplicationXUL

XUL

§

ApplicationZIP

ZIP archive

§

Application7Z

7-zip archive

§

FontOTF

OpenType font

§

FontTTF

TrueType Font

§

FontWOFF

Web Open Font Format (WOFF)

§

FontWOFF2

Web Open Font Format (WOFF)

§

ImageAVIF

AVIF image

§

ImageBMP

Windows OS/2 Bitmap Graphics

§

ImageGIF

Graphics Interchange Format (GIF)

§

ImageIcon

Icon format

§

ImageJPEG

JPEG images

§

ImagePNG

Portable Network Graphics

§

ImageSVG

Scalable Vector Graphics (SVG)

§

ImageTIF

Tagged Image File Format (TIFF)

§

ImageWEBP

WEBP image

§

TextCSS

Cascading Style Sheets (CSS)

§

TextCSV

Comma-separated values (CSV)

§

TextHTML

HyperText Markup Language (HTML)

§

TextCalendar

iCalendar format

§

TextJavascript

JavaScript

§

TextJavascriptModule

JavaScript module

§

TextPlain

Text, (generally ASCII or ISO 8859-n)

§

VideoMsVideo

AVI: Audio Video Interleave

§

VideoMP4

MP4 video

§

VideoMPEG

MPEG Video

§

VideoOGG

OGG video

§

VideoMPEGTransport

MPEG transport stream

§

VideoWEBM

WEBM video

§

Video3GPP

3GPP video container

§

Video3GPP2

3GPP2 video container

Implementations§

source§

impl Mime

source

pub fn to_string(self) -> &'static str

Trait Implementations§

source§

impl Clone for Mime

source§

fn clone(&self) -> Mime

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for Mime

§

impl Send for Mime

§

impl Sync for Mime

§

impl Unpin for Mime

§

impl UnwindSafe for Mime

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.