pub struct UploadStickerFile {
pub user_id: i64,
pub png_sticker: InputFile,
}
Expand description
Use this method to upload a .PNG file with a sticker for later use in createNewStickerSet and addStickerToSet methods (can be used multiple times). Returns the uploaded File on success.
Fields§
§user_id: i64
User identifier of sticker file owner
png_sticker: 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. More information on Sending Files »
Implementations§
Trait Implementations§
Source§impl Clone for UploadStickerFile
impl Clone for UploadStickerFile
Source§fn clone(&self) -> UploadStickerFile
fn clone(&self) -> UploadStickerFile
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 UploadStickerFile
impl Debug for UploadStickerFile
Source§impl<'de> Deserialize<'de> for UploadStickerFile
impl<'de> Deserialize<'de> for UploadStickerFile
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 Methods for UploadStickerFile
impl Methods for UploadStickerFile
Auto Trait Implementations§
impl Freeze for UploadStickerFile
impl RefUnwindSafe for UploadStickerFile
impl Send for UploadStickerFile
impl Sync for UploadStickerFile
impl Unpin for UploadStickerFile
impl UnwindSafe for UploadStickerFile
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