Struct rust_tdlib::types::GetFileExtension
source · pub struct GetFileExtension { /* private fields */ }
Expand description
Returns the extension of a file, guessed by its MIME type. Returns an empty string on failure. Can be called synchronously
Implementations§
Trait Implementations§
source§impl AsRef<GetFileExtension> for GetFileExtension
impl AsRef<GetFileExtension> for GetFileExtension
source§fn as_ref(&self) -> &GetFileExtension
fn as_ref(&self) -> &GetFileExtension
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for GetFileExtension
impl Clone for GetFileExtension
source§fn clone(&self) -> GetFileExtension
fn clone(&self) -> GetFileExtension
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 GetFileExtension
impl Debug for GetFileExtension
source§impl Default for GetFileExtension
impl Default for GetFileExtension
source§fn default() -> GetFileExtension
fn default() -> GetFileExtension
Returns the “default value” for a type. Read more
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