Struct discord_flows::model::Sticker
source · pub struct Sticker {
pub id: StickerId,
pub pack_id: Option<StickerPackId>,
pub name: String,
pub description: Option<String>,
pub tags: Vec<String, Global>,
pub kind: StickerType,
pub format_type: StickerFormatType,
pub available: bool,
pub guild_id: Option<GuildId>,
pub user: Option<User>,
pub sort_value: Option<u64>,
}
Expand description
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.id: StickerId
The unique ID given to this sticker.
pack_id: Option<StickerPackId>
The unique ID of the pack the sticker is from.
name: String
The name of the sticker.
description: Option<String>
Description of the sticker
For guild stickers, the Discord name of a unicode emoji representing the sticker’s expression. For standard stickers, a list of related expressions.
kind: StickerType
The type of sticker.
format_type: StickerFormatType
The type of sticker format.
available: bool
Whether or not this guild sticker can be used, may be false due to loss of Server Boosts.
guild_id: Option<GuildId>
Id of the guild that owns this sticker.
user: Option<User>
User that uploaded the sticker. This will be None
if the current user
does not have the Manage Emojis and Stickers permission.
sort_value: Option<u64>
A sticker’s sort order within a pack.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Sticker
impl<'de> Deserialize<'de> for Sticker
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Sticker, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<Sticker, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for Sticker
impl Serialize for Sticker
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. 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§
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