format_from_path

Function format_from_path 

Source
pub fn format_from_path<P: AsRef<Path>>(path: P) -> Option<String>
Expand description

Return a MIME type given a file path.

This function will use the file extension to determine the MIME type.