Struct botapi::gen_types::StickerSetBuilder
source · pub struct StickerSetBuilder { /* private fields */ }
Expand description
This object represents a sticker set.
Implementations§
source§impl StickerSetBuilder
impl StickerSetBuilder
pub fn new( name: String, title: String, sticker_type: String, is_animated: bool, is_video: bool, stickers: Vec<Sticker> ) -> Self
sourcepub fn set_sticker_type(self, sticker_type: String) -> Self
pub fn set_sticker_type(self, sticker_type: String) -> Self
Type of stickers in the set, currently one of “regular”, “mask”, “custom_emoji”
sourcepub fn set_is_animated(self, is_animated: bool) -> Self
pub fn set_is_animated(self, is_animated: bool) -> Self
True, if the sticker set contains animated stickers
sourcepub fn set_is_video(self, is_video: bool) -> Self
pub fn set_is_video(self, is_video: bool) -> Self
True, if the sticker set contains video stickers
sourcepub fn set_stickers(self, stickers: Vec<Sticker>) -> Self
pub fn set_stickers(self, stickers: Vec<Sticker>) -> Self
List of all set stickers
sourcepub fn set_thumbnail(self, thumbnail: PhotoSize) -> Self
pub fn set_thumbnail(self, thumbnail: PhotoSize) -> Self
Optional. Sticker set thumbnail in the .WEBP, .TGS, or .WEBM format
pub fn build(self) -> StickerSet
Trait Implementations§
source§impl Clone for StickerSetBuilder
impl Clone for StickerSetBuilder
source§fn clone(&self) -> StickerSetBuilder
fn clone(&self) -> StickerSetBuilder
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 StickerSetBuilder
impl Debug for StickerSetBuilder
source§impl Default for StickerSetBuilder
impl Default for StickerSetBuilder
source§fn default() -> StickerSetBuilder
fn default() -> StickerSetBuilder
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for StickerSetBuilder
impl<'de> Deserialize<'de> for StickerSetBuilder
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