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)
The file is an animation
Audio(FileTypeAudio)
The file is an audio file
Document(FileTypeDocument)
The file is a document
None(FileTypeNone)
The data is not a file
Photo(FileTypePhoto)
The file is a photo
ProfilePhoto(FileTypeProfilePhoto)
The file is a profile photo
Secret(FileTypeSecret)
The file was sent to a secret chat (the file type is not known to the server)
SecretThumbnail(FileTypeSecretThumbnail)
The file is a thumbnail of a file from a secret chat
Secure(FileTypeSecure)
The file is a file from Secure storage used for storing Telegram Passport files
Sticker(FileTypeSticker)
The file is a sticker
Thumbnail(FileTypeThumbnail)
The file is a thumbnail of another file
Unknown(FileTypeUnknown)
The file type is not yet known
Video(FileTypeVideo)
The file is a video
VideoNote(FileTypeVideoNote)
The file is a video note
VoiceNote(FileTypeVoiceNote)
The file is a voice note
Wallpaper(FileTypeWallpaper)
The file is a wallpaper or a background pattern
Implementations
Trait Implementations
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 UnwindSafe for FileType
Blanket Implementations
Mutably borrows from an owned value. Read more