Enum rust_tdlib::types::InputSticker
source · [−]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
sourceimpl AsRef<InputSticker> for InputSticker
impl AsRef<InputSticker> for InputSticker
sourcefn as_ref(&self) -> &InputSticker
fn as_ref(&self) -> &InputSticker
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for InputSticker
impl Clone for InputSticker
sourcefn clone(&self) -> InputSticker
fn clone(&self) -> InputSticker
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for InputSticker
impl Debug for InputSticker
sourceimpl Default for InputSticker
impl Default for InputSticker
sourceimpl<'de> Deserialize<'de> for InputSticker
impl<'de> Deserialize<'de> for InputSticker
sourcefn 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
sourceimpl Serialize for InputSticker
impl Serialize for InputSticker
Auto Trait Implementations
impl RefUnwindSafe for InputSticker
impl Send for InputSticker
impl Sync for InputSticker
impl Unpin for InputSticker
impl UnwindSafe for InputSticker
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more