pub struct GetFileExtension {
pub mime_type: String,
}
Expand description
Returns the extension of a file, guessed by its MIME type. Returns an empty string on failure. This is an offline method. Can be called before authorization. Can be called synchronously
Fields§
§mime_type: String
The MIME type of the file
Trait Implementations§
Source§impl Clone for GetFileExtension
impl Clone for GetFileExtension
Source§fn clone(&self) -> GetFileExtension
fn clone(&self) -> GetFileExtension
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 GetFileExtension
impl Debug for GetFileExtension
Source§impl<'de> Deserialize<'de> for GetFileExtension
impl<'de> Deserialize<'de> for GetFileExtension
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 GetFileExtension
impl Method for GetFileExtension
Auto Trait Implementations§
impl Freeze for GetFileExtension
impl RefUnwindSafe for GetFileExtension
impl Send for GetFileExtension
impl Sync for GetFileExtension
impl Unpin for GetFileExtension
impl UnwindSafe for GetFileExtension
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