Enum rtdlib::types::ThumbnailFormat [−][src]
pub enum ThumbnailFormat {
Gif(ThumbnailFormatGif),
Jpeg(ThumbnailFormatJpeg),
Mpeg4(ThumbnailFormatMpeg4),
Png(ThumbnailFormatPng),
Tgs(ThumbnailFormatTgs),
Webp(ThumbnailFormatWebp),
// some variants omitted
}
Expand description
Describes format of the thumbnail
Variants
The thumbnail is in static GIF format. It will be used only for some bot inline results
Tuple Fields of Gif
The thumbnail is in JPEG format
Tuple Fields of Jpeg
The thumbnail is in MPEG4 format. It will be used only for some animations and videos
Tuple Fields of Mpeg4
The thumbnail is in PNG format. It will be used only for background patterns
Tuple Fields of Png
The thumbnail is in TGS format. It will be used only for animated sticker sets
Tuple Fields of Tgs
The thumbnail is in WEBP format. It will be used only for some stickers
Tuple Fields of Webp
Implementations
Trait Implementations
Performs the conversion.
fn deserialize<D>(deserializer: D) -> Result<ThumbnailFormat, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<ThumbnailFormat, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ThumbnailFormat
impl Send for ThumbnailFormat
impl Sync for ThumbnailFormat
impl Unpin for ThumbnailFormat
impl UnwindSafe for ThumbnailFormat
Blanket Implementations
Mutably borrows from an owned value. Read more