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 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.
Trait Implementations§
Source§impl CacheableSticker for CachedSticker
impl CacheableSticker for CachedSticker
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more