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 CacheableSticker for CachedSticker
impl CacheableSticker for CachedSticker
Source§fn id(&self) -> Id<StickerMarker>
fn id(&self) -> Id<StickerMarker>
ID of the sticker.
Source§impl Clone for CachedSticker
impl Clone for CachedSticker
Source§fn clone(&self) -> CachedSticker
fn clone(&self) -> CachedSticker
Returns a duplicate 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 From<Sticker> for CachedSticker
impl From<Sticker> for CachedSticker
Source§impl PartialEq<Sticker> for CachedSticker
impl PartialEq<Sticker> for CachedSticker
Source§impl PartialEq for CachedSticker
impl PartialEq for CachedSticker
Source§impl Serialize for CachedSticker
impl Serialize for CachedSticker
impl Eq for CachedSticker
impl StructuralPartialEq for CachedSticker
Auto Trait Implementations§
impl Freeze for CachedSticker
impl RefUnwindSafe for CachedSticker
impl Send for CachedSticker
impl Sync for CachedSticker
impl Unpin for CachedSticker
impl UnwindSafe for CachedSticker
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