Enum rtdlib::types::FileType [−][src]
pub enum FileType {
Show 16 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
The file is an animation
Tuple Fields of Animation
The file is an audio file
Tuple Fields of Audio
The file is a document
Tuple Fields of Document
The data is not a file
Tuple Fields of None
0: FileTypeNone
The file is a photo
Tuple Fields of Photo
The file is a profile photo
Tuple Fields of ProfilePhoto
The file was sent to a secret chat (the file type is not known to the server)
Tuple Fields of Secret
The file is a thumbnail of a file from a secret chat
Tuple Fields of SecretThumbnail
The file is a file from Secure storage used for storing Telegram Passport files
Tuple Fields of Secure
The file is a sticker
Tuple Fields of Sticker
The file is a thumbnail of another file
Tuple Fields of Thumbnail
The file type is not yet known
Tuple Fields of Unknown
The file is a video
Tuple Fields of Video
The file is a video note
Tuple Fields of VideoNote
The file is a voice note
Tuple Fields of VoiceNote
The file is a wallpaper or a background pattern
Tuple Fields of Wallpaper
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FileType
impl UnwindSafe for FileType
Blanket Implementations
Mutably borrows from an owned value. Read more