pub struct StickerSet {
pub name: String,
pub title: String,
pub kind: StickerType,
pub format: StickerFormat,
pub stickers: Vec<Sticker>,
pub thumb: Option<PhotoSize>,
}Expand description
This object represents a sticker set.
Fields§
§name: StringSticker set name.
title: StringSticker set title.
kind: StickerTypeSticker type shared by all stickers in this set.
format: StickerFormatSticker format shared by all stickers in this set.
stickers: Vec<Sticker>List of all set stickers.
thumb: Option<PhotoSize>Sticker set thumbnail in the .webp, .tgs or .webm format.
Implementations§
Source§impl StickerSet
impl StickerSet
Sourcepub fn is_raster(&self) -> bool
pub fn is_raster(&self) -> bool
Returns true is this is a “normal” raster sticker.
Alias to self.format.is_raster().
Sourcepub fn is_animated(&self) -> bool
pub fn is_animated(&self) -> bool
Returns true is this is an animated sticker.
Alias to self.format.is_animated().
Sourcepub fn is_video(&self) -> bool
pub fn is_video(&self) -> bool
Returns true is this is a video sticker.
Alias to self.format.is_video().
Methods from Deref<Target = StickerType>§
Sourcepub fn is_regular(&self) -> bool
pub fn is_regular(&self) -> bool
Returns true if the sticker type is Regular.
Sourcepub fn is_custom_emoji(&self) -> bool
pub fn is_custom_emoji(&self) -> bool
Returns true if the sticker type is CustomEmoji.
Trait Implementations§
Source§impl Clone for StickerSet
impl Clone for StickerSet
Source§fn clone(&self) -> StickerSet
fn clone(&self) -> StickerSet
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 StickerSet
impl Debug for StickerSet
Source§impl<'de> Deserialize<'de> for StickerSet
impl<'de> Deserialize<'de> for StickerSet
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 StickerSet
impl PartialEq for StickerSet
Source§impl Serialize for StickerSet
impl Serialize for StickerSet
Source§impl Deref for StickerSet
This allows calling StickerType’s methods directly on StickerSet.
impl Deref for StickerSet
This allows calling StickerType’s methods directly on StickerSet.
use teloxide_core::types::StickerSet;
let sticker: StickerSet = todo!();
let _ = sticker.is_mask();
let _ = sticker.kind.is_mask();impl StructuralPartialEq for StickerSet
Auto Trait Implementations§
impl Freeze for StickerSet
impl RefUnwindSafe for StickerSet
impl Send for StickerSet
impl Sync for StickerSet
impl Unpin for StickerSet
impl UnwindSafe for StickerSet
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Erasable for T
impl<T> Erasable for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more