pub enum InputSticker {
Animated(InputStickerAnimated),
Static(InputStickerStatic),
// some variants omitted
}
Expand description
Describes a sticker that needs to be added to a sticker set
Variants§
Animated(InputStickerAnimated)
An animated sticker in TGS format
Static(InputStickerStatic)
A static sticker in PNG format, which will be converted to WEBP server-side
Implementations§
Trait Implementations§
Source§impl AsRef<InputSticker> for InputSticker
impl AsRef<InputSticker> for InputSticker
Source§fn as_ref(&self) -> &InputSticker
fn as_ref(&self) -> &InputSticker
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for InputSticker
impl Clone for InputSticker
Source§fn clone(&self) -> InputSticker
fn clone(&self) -> InputSticker
Returns a copy 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 Default for InputSticker
impl Default for InputSticker
Source§fn default() -> InputSticker
fn default() -> InputSticker
Returns the “default value” for a type. Read more
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