Enum rust_tdlib::types::ThumbnailFormat[][src]

pub enum ThumbnailFormat {
    Gif(ThumbnailFormatGif),
    Jpeg(ThumbnailFormatJpeg),
    Mpeg4(ThumbnailFormatMpeg4),
    Png(ThumbnailFormatPng),
    Tgs(ThumbnailFormatTgs),
    Webp(ThumbnailFormatWebp),
    // some variants omitted
}

Describes format of the thumbnail

Variants

The thumbnail is in static GIF format. It will be used only for some bot inline results

The thumbnail is in JPEG format

The thumbnail is in MPEG4 format. It will be used only for some animations and videos

The thumbnail is in PNG format. It will be used only for background patterns

The thumbnail is in TGS format. It will be used only for animated sticker sets

The thumbnail is in WEBP format. It will be used only for some stickers

Implementations

impl ThumbnailFormat[src]

pub fn from_json<S: AsRef<str>>(json: S) -> RTDResult<Self>[src]

Trait Implementations

impl AsRef<ThumbnailFormat> for ThumbnailFormat[src]

impl Clone for ThumbnailFormat[src]

impl Debug for ThumbnailFormat[src]

impl Default for ThumbnailFormat[src]

impl<'de> Deserialize<'de> for ThumbnailFormat[src]

impl Serialize for ThumbnailFormat[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,