Skip to main content

attachment_kind

Function attachment_kind 

Source
pub fn attachment_kind(name: &str, mime: &str) -> &'static str
Expand description

The kind of an attached file, by its type, else by its name’s ending (KINDS; “other” for the rest).