Struct rtdlib::types::GetFileMimeType [−][src]
pub struct GetFileMimeType { /* fields omitted */ }
Expand description
Returns the MIME type of a file, guessed by its extension. Returns an empty string on failure. This is an offline method. Can be called before authorization. Can be called synchronously
Implementations
Trait Implementations
Performs the conversion.
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for GetFileMimeType
impl Send for GetFileMimeType
impl Sync for GetFileMimeType
impl Unpin for GetFileMimeType
impl UnwindSafe for GetFileMimeType
Blanket Implementations
Mutably borrows from an owned value. Read more