pub struct Sticker { /* private fields */ }
Expand description
Describes a sticker
Implementations§
Source§impl 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§
Source§impl<'de> Deserialize<'de> for Sticker
impl<'de> Deserialize<'de> for Sticker
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 Sticker
impl RefUnwindSafe for Sticker
impl Send for Sticker
impl Sync for Sticker
impl Unpin for Sticker
impl UnwindSafe for Sticker
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