pub struct StickerSet {
pub name: String,
pub title: String,
pub kind: StickerType,
pub stickers: Vec<Sticker>,
pub thumbnail: 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.
stickers: Vec<Sticker>List of all set stickers.
thumbnail: Option<PhotoSize>Sticker set thumbnail in the .webp, .tgs or .webm format.
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 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_ng::types::StickerSet;
let sticker: StickerSet = todo!();
let _ = sticker.is_mask();
let _ = sticker.kind.is_mask();Source§type Target = StickerType
type Target = StickerType
The resulting type after dereferencing.
Source§impl<'de> Deserialize<'de> for StickerSet
impl<'de> Deserialize<'de> for StickerSet
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StickerSet, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StickerSet, <__D as Deserializer<'de>>::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§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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