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
sourceimpl AsRef<ThumbnailFormat> for ThumbnailFormat
impl AsRef<ThumbnailFormat> for ThumbnailFormat
sourcefn as_ref(&self) -> &ThumbnailFormat
fn as_ref(&self) -> &ThumbnailFormat
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for ThumbnailFormat
impl Clone for ThumbnailFormat
sourcefn clone(&self) -> ThumbnailFormat
fn clone(&self) -> ThumbnailFormat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ThumbnailFormat
impl Debug for ThumbnailFormat
sourceimpl Default for ThumbnailFormat
impl Default for ThumbnailFormat
sourceimpl<'de> Deserialize<'de> for ThumbnailFormat
impl<'de> Deserialize<'de> for ThumbnailFormat
sourcefn 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
sourceimpl Serialize for ThumbnailFormat
impl Serialize for ThumbnailFormat
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more