[−][src]Enum rtdlib::types::InputSticker
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
impl InputSticker
[src]
pub fn from_json<S: AsRef<str>>(json: S) -> RTDResult<Self>
[src]
pub fn is_animated(&self) -> bool
[src]
pub fn is_static(&self) -> bool
[src]
pub fn on_animated<F: FnOnce(&InputStickerAnimated)>(&self, fnc: F) -> &Self
[src]
pub fn on_static<F: FnOnce(&InputStickerStatic)>(&self, fnc: F) -> &Self
[src]
pub fn as_animated(&self) -> Option<&InputStickerAnimated>
[src]
pub fn as_static(&self) -> Option<&InputStickerStatic>
[src]
pub fn animated<T: AsRef<InputStickerAnimated>>(t: T) -> Self
[src]
pub fn static_<T: AsRef<InputStickerStatic>>(t: T) -> Self
[src]
Trait Implementations
impl AsRef<InputSticker> for InputSticker
[src]
fn as_ref(&self) -> &InputSticker
[src]
impl Clone for InputSticker
[src]
fn clone(&self) -> InputSticker
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for InputSticker
[src]
impl Default for InputSticker
[src]
impl<'de> Deserialize<'de> for InputSticker
[src]
fn deserialize<D>(deserializer: D) -> Result<InputSticker, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl RObject for InputSticker
[src]
impl Serialize for InputSticker
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,