pub struct Sticker<'a> {
pub id: Snowflake,
pub pack_id: Option<Snowflake>,
pub name: TitanString<'a>,
pub description: Option<TitanString<'a>>,
pub tags: TitanString<'a>,
pub sticker_type: u8,
pub format_type: u8,
pub user: Option<User<'a>>,
pub sort_value: Option<u32>,
}Expand description
A sticker in a guild.
Fields§
§id: SnowflakeID of the sticker.
pack_id: Option<Snowflake>ID of the pack the sticker is from.
name: TitanString<'a>Name of the sticker.
description: Option<TitanString<'a>>Description of the sticker.
Autocomplete/suggestion tags for the sticker.
sticker_type: u8Type of sticker.
format_type: u8Format type of the sticker (1=PNG, 2=APNG, 3=LOTTIE, 4=GIF).
user: Option<User<'a>>The user that uploaded the guild sticker.
sort_value: Option<u32>The standard sticker’s sort order within its pack.
Implementations§
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for Sticker<'a>
impl<'de, 'a> Deserialize<'de> for Sticker<'a>
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<'a> Freeze for Sticker<'a>
impl<'a> RefUnwindSafe for Sticker<'a>
impl<'a> Send for Sticker<'a>
impl<'a> Sync for Sticker<'a>
impl<'a> Unpin for Sticker<'a>
impl<'a> UnwindSafe for Sticker<'a>
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