Struct sparkle_cache::model::CachedSticker
source · [−]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: booldescription: Option<String>format_type: StickerFormatTypeguild_id: Option<Id<GuildMarker>>id: Id<StickerMarker>kind: StickerTypename: Stringpack_id: Option<Id<StickerPackMarker>>sort_value: Option<u64>user_id: Option<Id<UserMarker>>Trait Implementations
sourceimpl Clone for CachedSticker
impl Clone for CachedSticker
sourcefn clone(&self) -> CachedSticker
fn clone(&self) -> CachedSticker
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for CachedSticker
impl Debug for CachedSticker
Auto Trait Implementations
impl RefUnwindSafe for CachedSticker
impl Send for CachedSticker
impl Sync for CachedSticker
impl Unpin for CachedSticker
impl UnwindSafe for CachedSticker
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more