Enum tbot::types::input_file::StickerForStickerSet
source · pub enum StickerForStickerSet {
Png(PngSticker),
Tgs(TgsSticker),
}
Expand description
Represents a sticker that can be added to a sticker set.
Variants§
Implementations§
source§impl StickerForStickerSet
impl StickerForStickerSet
sourcepub fn expect_png(self) -> PngStickerwhere
Self: Debug,
pub fn expect_png(self) -> PngStickerwhere
Self: Debug,
sourcepub fn png(self) -> Option<PngSticker>
pub fn png(self) -> Option<PngSticker>
Returns Some
if self
is of variant Png
, and None
otherwise.
sourcepub fn expect_tgs(self) -> TgsStickerwhere
Self: Debug,
pub fn expect_tgs(self) -> TgsStickerwhere
Self: Debug,
sourcepub fn tgs(self) -> Option<TgsSticker>
pub fn tgs(self) -> Option<TgsSticker>
Returns Some
if self
is of variant Tgs
, and None
otherwise.
Trait Implementations§
source§impl Clone for StickerForStickerSet
impl Clone for StickerForStickerSet
source§fn clone(&self) -> StickerForStickerSet
fn clone(&self) -> StickerForStickerSet
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 StickerForStickerSet
impl Debug for StickerForStickerSet
source§impl From<PngSticker> for StickerForStickerSet
impl From<PngSticker> for StickerForStickerSet
source§fn from(sticker: PngSticker) -> Self
fn from(sticker: PngSticker) -> Self
Converts to this type from the input type.
source§impl From<TgsSticker> for StickerForStickerSet
impl From<TgsSticker> for StickerForStickerSet
source§fn from(sticker: TgsSticker) -> Self
fn from(sticker: TgsSticker) -> Self
Converts to this type from the input type.
source§impl Hash for StickerForStickerSet
impl Hash for StickerForStickerSet
source§impl PartialEq<StickerForStickerSet> for StickerForStickerSet
impl PartialEq<StickerForStickerSet> for StickerForStickerSet
source§fn eq(&self, other: &StickerForStickerSet) -> bool
fn eq(&self, other: &StickerForStickerSet) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.