pub struct GetFileMimeType { /* private fields */ }
Expand description
Returns the MIME type of a file, guessed by its extension. Returns an empty string on failure. Can be called synchronously
Implementations§
Trait Implementations§
Source§impl AsRef<GetFileMimeType> for GetFileMimeType
impl AsRef<GetFileMimeType> for GetFileMimeType
Source§fn as_ref(&self) -> &GetFileMimeType
fn as_ref(&self) -> &GetFileMimeType
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for GetFileMimeType
impl Clone for GetFileMimeType
Source§fn clone(&self) -> GetFileMimeType
fn clone(&self) -> GetFileMimeType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GetFileMimeType
impl Debug for GetFileMimeType
Source§impl Default for GetFileMimeType
impl Default for GetFileMimeType
Source§fn default() -> GetFileMimeType
fn default() -> GetFileMimeType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GetFileMimeType
impl<'de> Deserialize<'de> for GetFileMimeType
Source§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 Freeze for GetFileMimeType
impl RefUnwindSafe for GetFileMimeType
impl Send for GetFileMimeType
impl Sync for GetFileMimeType
impl Unpin for GetFileMimeType
impl UnwindSafe for GetFileMimeType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more