Enum rust_tdlib::types::ThumbnailFormat
source · 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§
Gif(ThumbnailFormatGif)
The thumbnail is in static GIF format. It will be used only for some bot inline results
Jpeg(ThumbnailFormatJpeg)
The thumbnail is in JPEG format
Mpeg4(ThumbnailFormatMpeg4)
The thumbnail is in MPEG4 format. It will be used only for some animations and videos
Png(ThumbnailFormatPng)
The thumbnail is in PNG format. It will be used only for background patterns
Tgs(ThumbnailFormatTgs)
The thumbnail is in TGS format. It will be used only for animated sticker sets
Webp(ThumbnailFormatWebp)
The thumbnail is in WEBP format. It will be used only for some stickers
Implementations§
Trait Implementations§
source§impl AsRef<ThumbnailFormat> for ThumbnailFormat
impl AsRef<ThumbnailFormat> for ThumbnailFormat
source§fn as_ref(&self) -> &ThumbnailFormat
fn as_ref(&self) -> &ThumbnailFormat
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for ThumbnailFormat
impl Clone for ThumbnailFormat
source§fn clone(&self) -> ThumbnailFormat
fn clone(&self) -> ThumbnailFormat
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ThumbnailFormat
impl Debug for ThumbnailFormat
source§impl Default for ThumbnailFormat
impl Default for ThumbnailFormat
source§fn default() -> ThumbnailFormat
fn default() -> ThumbnailFormat
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ThumbnailFormat
impl<'de> Deserialize<'de> for ThumbnailFormat
source§fn 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