Struct telexide::api::types::CreateNewStickerSet [−][src]
pub struct CreateNewStickerSet { pub user_id: i64, pub name: String, pub title: String, pub png_sticker: Option<InputFile>, pub tgs_sticker: Option<InputFile>, pub emojis: String, pub contains_masks: bool, pub mask_position: Option<MaskPosition>, }
struct for holding data needed to call
create_new_sticker_set
Fields
user_id: i64
User identifier of created sticker set owner
name: String
Short name of sticker set, to be used in t.me/addstickers/ URLs (e.g.,
animals). Can contain only english letters, digits and underscores.
Must begin with a letter, can’t contain consecutive underscores and
must end in “by
title: String
Sticker set title, 1-64 characters
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
contains_masks: bool
Pass True, if a set of mask stickers should be created
mask_position: Option<MaskPosition>
position where the mask should be placed on faces
Trait Implementations
impl Clone for CreateNewStickerSet
[src]
impl Clone for CreateNewStickerSet
[src]fn clone(&self) -> CreateNewStickerSet
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'de> Deserialize<'de> for CreateNewStickerSet
[src]
impl<'de> Deserialize<'de> for CreateNewStickerSet
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<CreateNewStickerSet> for CreateNewStickerSet
[src]
impl PartialEq<CreateNewStickerSet> for CreateNewStickerSet
[src]fn eq(&self, other: &CreateNewStickerSet) -> bool
[src]
fn ne(&self, other: &CreateNewStickerSet) -> bool
[src]
impl Serialize for CreateNewStickerSet
[src]
impl Serialize for CreateNewStickerSet
[src]Auto Trait Implementations
impl RefUnwindSafe for CreateNewStickerSet
impl RefUnwindSafe for CreateNewStickerSet
impl Send for CreateNewStickerSet
impl Send for CreateNewStickerSet
impl Sync for CreateNewStickerSet
impl Sync for CreateNewStickerSet
impl Unpin for CreateNewStickerSet
impl Unpin for CreateNewStickerSet
impl UnwindSafe for CreateNewStickerSet
impl UnwindSafe for CreateNewStickerSet
Blanket Implementations
impl<T> CloneAny for T where
T: Any + Clone,
[src]
impl<T> CloneAny for T where
T: Any + Clone,
[src]pub fn clone_any(&self) -> Box<dyn CloneAny + 'static, Global>
[src]
pub fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send, Global> where
T: Send,
[src]
T: Send,
pub fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync, Global> where
T: Sync,
[src]
T: Sync,
pub fn clone_any_send_sync(
&self
) -> Box<dyn CloneAny + 'static + Sync + Send, Global> where
T: Send + Sync,
[src]
&self
) -> Box<dyn CloneAny + 'static + Sync + Send, Global> where
T: Send + Sync,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> UnsafeAny for T where
T: Any,
impl<T> UnsafeAny for T where
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,