pub struct InputSticker {
pub png_sticker: InputFile,
pub emojis: String,
pub mask_position: Option<MaskPosition>,
}
Expand description
Describes a sticker that should be added to a sticker set
Fields§
§png_sticker: InputFile
PNG image with the sticker; must be up to 512 kB in size and fit in a 512x512 square
emojis: String
Emoji corresponding to the sticker
mask_position: Option<MaskPosition>
For masks, position where the mask should be placed; may be null
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
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