Struct botapi::gen_types::StickerSet
source · [−]pub struct StickerSet { /* private fields */ }Expand description
This object represents a sticker set.
Implementations
sourceimpl StickerSet
impl StickerSet
pub fn new(
name: String,
title: String,
sticker_type: String,
is_animated: bool,
is_video: bool,
stickers: Vec<Sticker>
) -> Self
sourcepub fn get_sticker_type<'a>(&'a self) -> &'a str
pub fn get_sticker_type<'a>(&'a self) -> &'a str
Type of stickers in the set, currently one of “regular”, “mask”, “custom_emoji”
sourcepub fn get_is_animated<'a>(&'a self) -> bool
pub fn get_is_animated<'a>(&'a self) -> bool
True, if the sticker set contains animated stickers
sourcepub fn get_is_video<'a>(&'a self) -> bool
pub fn get_is_video<'a>(&'a self) -> bool
True, if the sticker set contains video stickers
sourcepub fn get_stickers<'a>(&'a self) -> &'a Vec<Sticker>
pub fn get_stickers<'a>(&'a self) -> &'a Vec<Sticker>
List of all set stickers
Trait Implementations
sourceimpl Debug for StickerSet
impl Debug for StickerSet
sourceimpl<'de> Deserialize<'de> for StickerSet
impl<'de> Deserialize<'de> for StickerSet
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 StickerSet
impl Serialize for StickerSet
Auto Trait Implementations
impl RefUnwindSafe for StickerSet
impl Send for StickerSet
impl Sync for StickerSet
impl Unpin for StickerSet
impl UnwindSafe for StickerSet
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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