pub struct CachedSticker {
pub available: bool,
pub description: Option<String>,
pub format_type: StickerFormatType,
pub guild_id: Option<Id<GuildMarker>>,
pub id: Id<StickerMarker>,
pub kind: StickerType,
pub name: String,
pub pack_id: Option<Id<StickerPackMarker>>,
pub sort_value: Option<u64>,
pub tags: String,
pub user_id: Option<Id<UserMarker>>,
}Expand description
A cached sticker
It’s the same as twilight_model::channel::message::sticker::Sticker
except:
userfield is changed to a user ID, since users are cached separately
Fields§
§available: bool§description: Option<String>§format_type: StickerFormatType§guild_id: Option<Id<GuildMarker>>§id: Id<StickerMarker>§kind: StickerType§name: String§pack_id: Option<Id<StickerPackMarker>>§sort_value: Option<u64>§user_id: Option<Id<UserMarker>>Trait Implementations§
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
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