[][src]Struct telexide::api::types::AddStickerToSet

pub struct AddStickerToSet {
    pub user_id: i64,
    pub name: String,
    pub png_sticker: Option<InputFile>,
    pub tgs_sticker: Option<InputFile>,
    pub emojis: String,
    pub mask_position: Option<MaskPosition>,
}

struct for holding data needed to call add_sticker_to_set

Fields

user_id: i64

User identifier of sticker set owner

name: String

Name of the sticker set

png_sticker: Option<InputFile>

PNG image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. Pass a file_id as a String to send a file that already exists on the Telegram servers, ass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one

tgs_sticker: Option<InputFile>

TGS animation with the sticker, uploaded using multipart/form-data. See https://core.telegram.org/animated_stickers#technical-requirements for technical requirements

emojis: String

One or more emoji corresponding to the sticker

mask_position: Option<MaskPosition>

position where the mask should be placed on faces

Trait Implementations

impl Clone for AddStickerToSet[src]

impl Debug for AddStickerToSet[src]

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

impl PartialEq<AddStickerToSet> for AddStickerToSet[src]

impl Serialize for AddStickerToSet[src]

impl StructuralPartialEq for AddStickerToSet[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> CloneAny for T where
    T: Clone + Any
[src]

impl<T> DebugAny for T where
    T: Any + Debug
[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.

impl<T> UnsafeAny for T where
    T: Any