pub struct CachedMessageSticker {
pub message_id: Id<MessageMarker>,
pub format_type: StickerFormatType,
pub id: Id<StickerMarker>,
pub name: String,
}Expand description
A cached message sticker
It’s the same as
twilight_model::channel::message::sticker::MessageSticker except:
message_idfield is added, making it possible to return a message’s stickers
Fields§
§message_id: Id<MessageMarker>§format_type: StickerFormatType§id: Id<StickerMarker>§name: StringImplementations§
Source§impl CachedMessageSticker
impl CachedMessageSticker
Sourcepub fn from_sticker(
sticker: MessageSticker,
message_id: Id<MessageMarker>,
) -> Self
pub fn from_sticker( sticker: MessageSticker, message_id: Id<MessageMarker>, ) -> Self
Create a cached message sticker from a given sticker and message ID
Trait Implementations§
Source§impl Clone for CachedMessageSticker
impl Clone for CachedMessageSticker
Source§fn clone(&self) -> CachedMessageSticker
fn clone(&self) -> CachedMessageSticker
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 moreAuto Trait Implementations§
impl Freeze for CachedMessageSticker
impl RefUnwindSafe for CachedMessageSticker
impl Send for CachedMessageSticker
impl Sync for CachedMessageSticker
impl Unpin for CachedMessageSticker
impl UnwindSafe for CachedMessageSticker
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