Struct serenity::model::id::EmojiId [−][src]
pub struct EmojiId(pub u64);
An identifier for an Emoji
Methods
impl EmojiId
[src]
impl EmojiId
pub fn created_at(&self) -> NaiveDateTime
[src]
pub fn created_at(&self) -> NaiveDateTime
Retrieves the time that the Id was created at.
Trait Implementations
impl From<EmojiId> for ReactionType
[src]
impl From<EmojiId> for ReactionType
fn from(emoji_id: EmojiId) -> ReactionType
[src]
fn from(emoji_id: EmojiId) -> ReactionType
Performs the conversion.
impl From<Emoji> for EmojiId
[src]
impl From<Emoji> for EmojiId
impl<'a> From<&'a Emoji> for EmojiId
[src]
impl<'a> From<&'a Emoji> for EmojiId
impl Copy for EmojiId
[src]
impl Copy for EmojiId
impl Clone for EmojiId
[src]
impl Clone for EmojiId
fn clone(&self) -> EmojiId
[src]
fn clone(&self) -> EmojiId
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Default for EmojiId
[src]
impl Default for EmojiId
impl Debug for EmojiId
[src]
impl Debug for EmojiId
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for EmojiId
[src]
impl Eq for EmojiId
impl Hash for EmojiId
[src]
impl Hash for EmojiId
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialOrd for EmojiId
[src]
impl PartialOrd for EmojiId
fn partial_cmp(&self, other: &EmojiId) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &EmojiId) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &EmojiId) -> bool
[src]
fn lt(&self, other: &EmojiId) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &EmojiId) -> bool
[src]
fn le(&self, other: &EmojiId) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &EmojiId) -> bool
[src]
fn gt(&self, other: &EmojiId) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &EmojiId) -> bool
[src]
fn ge(&self, other: &EmojiId) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for EmojiId
[src]
impl Ord for EmojiId
fn cmp(&self, other: &EmojiId) -> Ordering
[src]
fn cmp(&self, other: &EmojiId) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl AsRef<EmojiId> for EmojiId
[src]
impl AsRef<EmojiId> for EmojiId
impl<'a> From<&'a EmojiId> for EmojiId
[src]
impl<'a> From<&'a EmojiId> for EmojiId
impl From<u64> for EmojiId
[src]
impl From<u64> for EmojiId
impl PartialEq for EmojiId
[src]
impl PartialEq for EmojiId
fn eq(&self, other: &Self) -> bool
[src]
fn eq(&self, other: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl PartialEq<u64> for EmojiId
[src]
impl PartialEq<u64> for EmojiId
fn eq(&self, u: &u64) -> bool
[src]
fn eq(&self, u: &u64) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Display for EmojiId
[src]
impl Display for EmojiId
fn fmt(&self, f: &mut Formatter) -> FmtResult
[src]
fn fmt(&self, f: &mut Formatter) -> FmtResult
Formats the value using the given formatter. Read more
impl<'de> Deserialize<'de> for EmojiId
[src]
impl<'de> Deserialize<'de> for EmojiId
fn deserialize<D: Deserializer<'de>>(
deserializer: D
) -> StdResult<Self, D::Error>
[src]
fn deserialize<D: Deserializer<'de>>(
deserializer: D
) -> StdResult<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more