Struct twilight_cache_inmemory::model::CachedEmoji [−][src]
pub struct CachedEmoji { pub id: EmojiId, pub animated: bool, pub name: String, pub managed: bool, pub require_colons: bool, pub roles: Vec<RoleId>, pub user_id: Option<UserId>, pub available: bool, }
Expand description
Represents a cached Emoji
.
Fields
id: EmojiId
ID of the Emoji.
animated: bool
Whether the emoji is animated.
name: String
Name of the Emoji.
managed: bool
Whether the emoji is managed.
require_colons: bool
Whether the emoji must be wrapped in colons.
roles: Vec<RoleId>
List of roles allowed to use this emoji.
user_id: Option<UserId>
ID of the user who created the emoji.
available: bool
Whether this emoji can be used.
May be false due to loss of Server Boosts.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for CachedEmoji
impl Send for CachedEmoji
impl Sync for CachedEmoji
impl Unpin for CachedEmoji
impl UnwindSafe for CachedEmoji
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more