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 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 CachedEmoji
impl Debug for CachedEmoji
Source§impl From<Emoji> for CachedEmoji
impl From<Emoji> for CachedEmoji
Source§impl PartialEq<Emoji> for CachedEmoji
impl PartialEq<Emoji> for CachedEmoji
Source§impl PartialEq for CachedEmoji
impl PartialEq for CachedEmoji
Source§impl Serialize for CachedEmoji
impl Serialize for CachedEmoji
impl CacheableEmoji for CachedEmoji
impl Eq for CachedEmoji
impl StructuralPartialEq for CachedEmoji
Auto Trait Implementations§
impl Freeze for CachedEmoji
impl RefUnwindSafe for CachedEmoji
impl Send for CachedEmoji
impl Sync for CachedEmoji
impl Unpin for CachedEmoji
impl UnwindSafe for CachedEmoji
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