Enum rust_tdlib::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
Gif(ThumbnailFormatGif)
Expand description
The thumbnail is in static GIF format. It will be used only for some bot inline results
Jpeg(ThumbnailFormatJpeg)
Expand description
The thumbnail is in JPEG format
Mpeg4(ThumbnailFormatMpeg4)
Expand description
The thumbnail is in MPEG4 format. It will be used only for some animations and videos
Png(ThumbnailFormatPng)
Expand description
The thumbnail is in PNG format. It will be used only for background patterns
Tgs(ThumbnailFormatTgs)
Expand description
The thumbnail is in TGS format. It will be used only for animated sticker sets
Webp(ThumbnailFormatWebp)
Expand description
The thumbnail is in WEBP format. It will be used only for some stickers
Implementations
Trait Implementations
impl AsRef<ThumbnailFormat> for ThumbnailFormat
[src]
impl AsRef<ThumbnailFormat> for ThumbnailFormat
[src]fn as_ref(&self) -> &ThumbnailFormat
[src]
fn as_ref(&self) -> &ThumbnailFormat
[src]Performs the conversion.
impl Clone for ThumbnailFormat
[src]
impl Clone for ThumbnailFormat
[src]fn clone(&self) -> ThumbnailFormat
[src]
fn clone(&self) -> ThumbnailFormat
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for ThumbnailFormat
[src]
impl Debug for ThumbnailFormat
[src]impl Default for ThumbnailFormat
[src]
impl Default for ThumbnailFormat
[src]impl<'de> Deserialize<'de> for ThumbnailFormat
[src]
impl<'de> Deserialize<'de> for ThumbnailFormat
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl Serialize for ThumbnailFormat
[src]
impl Serialize for ThumbnailFormat
[src]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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,