Struct twilight_cache_inmemory::model::CachedEmoji
source · pub struct CachedEmoji { /* private fields */ }Expand description
Represents a cached Emoji.
Implementations§
source§impl CachedEmoji
impl CachedEmoji
sourcepub const fn available(&self) -> bool
pub const fn available(&self) -> bool
Whether this emoji can be used.
May be false due to loss of Server Boosts.
sourcepub const fn id(&self) -> Id<EmojiMarker>
pub const fn id(&self) -> Id<EmojiMarker>
ID of the Emoji.
sourcepub const fn require_colons(&self) -> bool
pub const fn require_colons(&self) -> bool
Whether the emoji must be wrapped in colons.
sourcepub fn roles(&self) -> &[Id<RoleMarker>]
pub fn roles(&self) -> &[Id<RoleMarker>]
List of roles allowed to use this emoji.
sourcepub const fn user_id(&self) -> Option<Id<UserMarker>>
pub const fn user_id(&self) -> Option<Id<UserMarker>>
ID of the user who created the emoji.
Trait Implementations§
source§impl Clone for CachedEmoji
impl Clone for CachedEmoji
source§fn clone(&self) -> CachedEmoji
fn clone(&self) -> CachedEmoji
Returns a copy 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 CachedEmoji
impl Debug for CachedEmoji
source§impl PartialEq<CachedEmoji> for CachedEmoji
impl PartialEq<CachedEmoji> for CachedEmoji
source§fn eq(&self, other: &CachedEmoji) -> bool
fn eq(&self, other: &CachedEmoji) -> bool
This method tests for
self and other values to be equal, and is used
by ==.