pub enum ThumbnailFormat {
Jpeg,
Gif,
Mpeg4,
Png,
Tgs,
Webm,
Webp,
}
Variants§
Jpeg
The thumbnail is in JPEG format
Gif
The thumbnail is in static GIF format. It will be used only for some bot inline query results
Mpeg4
The thumbnail is in MPEG4 format. It will be used only for some animations and videos
Png
The thumbnail is in PNG format. It will be used only for background patterns
Tgs
The thumbnail is in TGS format. It will be used only for sticker sets
Webm
The thumbnail is in WEBM format. It will be used only for sticker sets
Webp
The thumbnail is in WEBP format. It will be used only for some stickers and sticker sets
Trait Implementations§
Source§impl Clone for ThumbnailFormat
impl Clone for ThumbnailFormat
Source§fn clone(&self) -> ThumbnailFormat
fn clone(&self) -> ThumbnailFormat
Returns a duplicate 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<'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
Source§impl PartialEq for ThumbnailFormat
impl PartialEq for ThumbnailFormat
Source§impl Serialize for ThumbnailFormat
impl Serialize for ThumbnailFormat
impl StructuralPartialEq for ThumbnailFormat
Auto Trait Implementations§
impl Freeze for ThumbnailFormat
impl RefUnwindSafe for ThumbnailFormat
impl Send for ThumbnailFormat
impl Sync for ThumbnailFormat
impl Unpin for ThumbnailFormat
impl UnwindSafe for ThumbnailFormat
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more