[][src]Enum rtdlib::types::InputSticker

pub enum InputSticker {
    Animated(InputStickerAnimated),
    Static(InputStickerStatic),
    // some variants omitted
}

Describes a sticker that needs to be added to a sticker set

Variants

An animated sticker in TGS format

A static sticker in PNG format, which will be converted to WEBP server-side

Implementations

impl InputSticker[src]

pub fn from_json<S: AsRef<str>>(json: S) -> RTDResult<Self>[src]

pub fn is_animated(&self) -> bool[src]

pub fn is_static(&self) -> bool[src]

pub fn on_animated<F: FnOnce(&InputStickerAnimated)>(&self, fnc: F) -> &Self[src]

pub fn on_static<F: FnOnce(&InputStickerStatic)>(&self, fnc: F) -> &Self[src]

pub fn as_animated(&self) -> Option<&InputStickerAnimated>[src]

pub fn as_static(&self) -> Option<&InputStickerStatic>[src]

pub fn animated<T: AsRef<InputStickerAnimated>>(t: T) -> Self[src]

pub fn static_<T: AsRef<InputStickerStatic>>(t: T) -> Self[src]

Trait Implementations

impl AsRef<InputSticker> for InputSticker[src]

impl Clone for InputSticker[src]

impl Debug for InputSticker[src]

impl Default for InputSticker[src]

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

impl RObject for InputSticker[src]

impl Serialize for InputSticker[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, 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.