#[non_exhaustive]pub struct EmojiIdentifier {
pub animated: bool,
pub id: EmojiId,
pub name: String,
}
Expand description
A version of an emoji used only when solely the animated state, Id, and name are known.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.animated: bool
Whether the emoji is animated
id: EmojiId
The Id of the emoji.
name: String
The name of the emoji. It must be at least 2 characters long and can only contain alphanumeric characters and underscores.
Implementations§
Trait Implementations§
Source§impl Clone for EmojiIdentifier
impl Clone for EmojiIdentifier
Source§fn clone(&self) -> EmojiIdentifier
fn clone(&self) -> EmojiIdentifier
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 EmojiIdentifier
impl Debug for EmojiIdentifier
Source§impl Display for EmojiIdentifier
impl Display for EmojiIdentifier
Source§impl From<EmojiIdentifier> for ReactionType
impl From<EmojiIdentifier> for ReactionType
Source§fn from(emoji_id: EmojiIdentifier) -> ReactionType
fn from(emoji_id: EmojiIdentifier) -> ReactionType
Converts to this type from the input type.
Source§impl FromStr for EmojiIdentifier
impl FromStr for EmojiIdentifier
Source§impl Hash for EmojiIdentifier
impl Hash for EmojiIdentifier
Source§impl Ord for EmojiIdentifier
impl Ord for EmojiIdentifier
Source§fn cmp(&self, other: &EmojiIdentifier) -> Ordering
fn cmp(&self, other: &EmojiIdentifier) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for EmojiIdentifier
impl PartialEq for EmojiIdentifier
Source§impl PartialOrd for EmojiIdentifier
impl PartialOrd for EmojiIdentifier
impl Eq for EmojiIdentifier
impl StructuralPartialEq for EmojiIdentifier
Auto Trait Implementations§
impl Freeze for EmojiIdentifier
impl RefUnwindSafe for EmojiIdentifier
impl Send for EmojiIdentifier
impl Sync for EmojiIdentifier
impl Unpin for EmojiIdentifier
impl UnwindSafe for EmojiIdentifier
Blanket Implementations§
Source§impl<T> ArgumentConvert for Twhere
T: FromStr,
impl<T> ArgumentConvert for Twhere
T: FromStr,
Source§fn convert<'life0, 'async_trait>(
__arg0: impl CacheHttp + 'async_trait,
__arg1: Option<GuildId>,
__arg2: Option<ChannelId>,
s: &'life0 str,
) -> Pin<Box<dyn Future<Output = Result<T, <T as ArgumentConvert>::Err>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn convert<'life0, 'async_trait>(
__arg0: impl CacheHttp + 'async_trait,
__arg1: Option<GuildId>,
__arg2: Option<ChannelId>,
s: &'life0 str,
) -> Pin<Box<dyn Future<Output = Result<T, <T as ArgumentConvert>::Err>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Parses a string
s
as a command parameter of this type.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
Source§impl<T> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
impl<T> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
fn clone_storage(&self) -> Box<dyn CloneDebuggableStorage>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CloneableStorage for T
impl<T> CloneableStorage for T
fn clone_storage(&self) -> Box<dyn CloneableStorage>
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.