Enum rust_tdlib::types::FileType [−][src]
pub enum FileType {}Show variants
Animation(FileTypeAnimation), Audio(FileTypeAudio), Document(FileTypeDocument), None(FileTypeNone), Photo(FileTypePhoto), ProfilePhoto(FileTypeProfilePhoto), Secret(FileTypeSecret), SecretThumbnail(FileTypeSecretThumbnail), Secure(FileTypeSecure), Sticker(FileTypeSticker), Thumbnail(FileTypeThumbnail), Unknown(FileTypeUnknown), Video(FileTypeVideo), VideoNote(FileTypeVideoNote), VoiceNote(FileTypeVoiceNote), Wallpaper(FileTypeWallpaper), // some variants omitted
Expand description
Represents the type of a file
Variants
Animation(FileTypeAnimation)
Expand description
The file is an animation
Audio(FileTypeAudio)
Expand description
The file is an audio file
Document(FileTypeDocument)
Expand description
The file is a document
None(FileTypeNone)
Expand description
The data is not a file
Photo(FileTypePhoto)
Expand description
The file is a photo
ProfilePhoto(FileTypeProfilePhoto)
Expand description
The file is a profile photo
Secret(FileTypeSecret)
Expand description
The file was sent to a secret chat (the file type is not known to the server)
SecretThumbnail(FileTypeSecretThumbnail)
Expand description
The file is a thumbnail of a file from a secret chat
Secure(FileTypeSecure)
Expand description
The file is a file from Secure storage used for storing Telegram Passport files
Sticker(FileTypeSticker)
Expand description
The file is a sticker
Thumbnail(FileTypeThumbnail)
Expand description
The file is a thumbnail of another file
Unknown(FileTypeUnknown)
Expand description
The file type is not yet known
Video(FileTypeVideo)
Expand description
The file is a video
VideoNote(FileTypeVideoNote)
Expand description
The file is a video note
VoiceNote(FileTypeVoiceNote)
Expand description
The file is a voice note
Wallpaper(FileTypeWallpaper)
Expand description
The file is a wallpaper or a background pattern
Implementations
Trait Implementations
impl<'de> Deserialize<'de> for FileType
[src]
impl<'de> Deserialize<'de> for FileType
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for FileType
impl Send for FileType
impl Sync for FileType
impl Unpin for FileType
impl UnwindSafe for FileType
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,