Trait MimeType

Source
pub trait MimeType {
    // Required methods
    fn from_mime_type(mime_type: &str) -> Option<Self>
       where Self: Sized;
    fn to_mime_type(&self) -> &'static str;
}
Expand description

Trait for converting between MIME types and media types.

Required Methods§

Source

fn from_mime_type(mime_type: &str) -> Option<Self>
where Self: Sized,

Source

fn to_mime_type(&self) -> &'static str

Implementors§