[][src]Struct teloxide::types::StickerSet

#[non_exhaustive]pub struct StickerSet {
    pub name: String,
    pub title: String,
    pub is_animated: bool,
    pub contains_masks: bool,
    pub stickers: Vec<Sticker>,
    // some fields omitted
}

This object represents a sticker set.

The official docs.

Fields (Non-exhaustive)

Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
name: String

Sticker set name.

title: String

Sticker set title.

is_animated: bool

true, if the sticker set contains [animated stickers].

contains_masks: bool

true, if the sticker set contains masks.

stickers: Vec<Sticker>

List of all set stickers.

Implementations

impl StickerSet[src]

pub fn new<S1, S2, St>(
    name: S1,
    title: S2,
    is_animated: bool,
    contains_masks: bool,
    stickers: St
) -> Self where
    S1: Into<String>,
    S2: Into<String>,
    St: Into<Vec<Sticker>>, 
[src]

pub fn name<S>(self, val: S) -> Self where
    S: Into<String>, 
[src]

pub fn title<S>(self, val: S) -> Self where
    S: Into<String>, 
[src]

pub fn is_animated(self, val: bool) -> Self[src]

pub fn contains_masks(self, val: bool) -> Self[src]

pub fn stickers<S>(self, val: S) -> Self where
    S: Into<Vec<Sticker>>, 
[src]

Trait Implementations

impl Clone for StickerSet[src]

impl Debug for StickerSet[src]

impl<'de> Deserialize<'de> for StickerSet[src]

impl PartialEq<StickerSet> for StickerSet[src]

impl Serialize for StickerSet[src]

impl StructuralPartialEq for StickerSet[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.