Struct twilight_cache_inmemory::model::CachedSticker
source · pub struct CachedSticker { /* private fields */ }Expand description
Representation of a cached Sticker.
Implementations§
source§impl CachedSticker
impl CachedSticker
sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Description of the sticker.
sourcepub const fn format_type(&self) -> StickerFormatType
pub const fn format_type(&self) -> StickerFormatType
Format type.
sourcepub const fn guild_id(&self) -> Option<Id<GuildMarker>>
pub const fn guild_id(&self) -> Option<Id<GuildMarker>>
ID of the guild that owns the sticker.
sourcepub const fn id(&self) -> Id<StickerMarker>
pub const fn id(&self) -> Id<StickerMarker>
Unique ID of the sticker.
sourcepub const fn kind(&self) -> StickerType
pub const fn kind(&self) -> StickerType
Kind of sticker.
sourcepub const fn pack_id(&self) -> Option<Id<StickerPackMarker>>
pub const fn pack_id(&self) -> Option<Id<StickerPackMarker>>
Unique ID of the pack the sticker is in.
sourcepub const fn sort_value(&self) -> Option<u64>
pub const fn sort_value(&self) -> Option<u64>
Sticker’s sort order within a pack.
CSV list of tags the sticker is assigned to, if any.
sourcepub const fn user_id(&self) -> Option<Id<UserMarker>>
pub const fn user_id(&self) -> Option<Id<UserMarker>>
ID of the user that uploaded the sticker.
Trait Implementations§
source§impl Clone for CachedSticker
impl Clone for CachedSticker
source§fn clone(&self) -> CachedSticker
fn clone(&self) -> CachedSticker
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for CachedSticker
impl Debug for CachedSticker
source§impl PartialEq<CachedSticker> for CachedSticker
impl PartialEq<CachedSticker> for CachedSticker
source§fn eq(&self, other: &CachedSticker) -> bool
fn eq(&self, other: &CachedSticker) -> bool
This method tests for
self and other values to be equal, and is used
by ==.