pub struct GetFileMimeType {
pub file_name: String,
}
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
Fields§
§file_name: String
The name of the file or path to the file
Trait Implementations§
Source§impl Clone for GetFileMimeType
impl Clone for GetFileMimeType
Source§fn clone(&self) -> GetFileMimeType
fn clone(&self) -> GetFileMimeType
Returns a duplicate 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<'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
Source§impl Method for GetFileMimeType
impl Method for GetFileMimeType
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