Struct rust_tdlib::types::Sticker
source · [−]pub struct Sticker { /* private fields */ }
Expand description
Describes a sticker
Implementations
sourceimpl Sticker
impl Sticker
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> StickerBuilder
pub fn set_id(&self) -> i64
pub fn width(&self) -> i32
pub fn height(&self) -> i32
pub fn emoji(&self) -> &String
pub fn is_animated(&self) -> bool
pub fn is_mask(&self) -> bool
pub fn mask_position(&self) -> &Option<MaskPosition>
pub fn outline(&self) -> &Vec<ClosedVectorPath>
pub fn thumbnail(&self) -> &Option<Thumbnail>
pub fn sticker(&self) -> &File
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Sticker
impl<'de> Deserialize<'de> for Sticker
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
Auto Trait Implementations
impl RefUnwindSafe for Sticker
impl Send for Sticker
impl Sync for Sticker
impl Unpin for Sticker
impl UnwindSafe for Sticker
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