Struct rust_tdlib::types::GetFileMimeType
source · [−]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
sourceimpl AsRef<GetFileMimeType> for GetFileMimeType
impl AsRef<GetFileMimeType> for GetFileMimeType
sourcefn as_ref(&self) -> &GetFileMimeType
fn as_ref(&self) -> &GetFileMimeType
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for GetFileMimeType
impl Clone for GetFileMimeType
sourcefn clone(&self) -> GetFileMimeType
fn clone(&self) -> GetFileMimeType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for GetFileMimeType
impl Debug for GetFileMimeType
sourceimpl Default for GetFileMimeType
impl Default for GetFileMimeType
sourcefn default() -> GetFileMimeType
fn default() -> GetFileMimeType
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for GetFileMimeType
impl<'de> Deserialize<'de> for GetFileMimeType
sourcefn 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
sourceimpl Serialize for GetFileMimeType
impl Serialize for GetFileMimeType
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more