pub struct InputSticker {
pub sticker: InputFile,
pub emojis: String,
pub mask_position: Option<MaskPosition>,
pub keywords: Vec<String>,
}
Expand description
A sticker to be added to a sticker set
Fields§
§sticker: InputFile
File with the sticker; must fit in a 512x512 square. For WEBP stickers the file must be in WEBP or PNG format, which will be converted to WEBP server-side. See https:core.telegram.org/animated_stickers#technical-requirements for technical requirements
emojis: String
String with 1-20 emoji corresponding to the sticker
mask_position: Option<MaskPosition>
Position where the mask is placed; pass null if not specified
keywords: Vec<String>
List of up to 20 keywords with total length up to 64 characters, which can be used to find the sticker
Trait Implementations§
Source§impl Clone for InputSticker
impl Clone for InputSticker
Source§fn clone(&self) -> InputSticker
fn clone(&self) -> InputSticker
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 InputSticker
impl Debug for InputSticker
Source§impl<'de> Deserialize<'de> for InputSticker
impl<'de> Deserialize<'de> for InputSticker
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for InputSticker
impl PartialEq for InputSticker
Source§impl Serialize for InputSticker
impl Serialize for InputSticker
impl StructuralPartialEq for InputSticker
Auto Trait Implementations§
impl Freeze for InputSticker
impl RefUnwindSafe for InputSticker
impl Send for InputSticker
impl Sync for InputSticker
impl Unpin for InputSticker
impl UnwindSafe for InputSticker
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