pub struct Emoji {
pub id: Option<Snowflake>,
pub name: String,
pub roles: Vec<Snowflake>,
pub user: Option<User>,
pub require_colons: Option<bool>,
pub managed: Option<bool>,
pub animated: Option<bool>,
}Expand description
A Discord emote than can be used to react to messages.
Fields§
§id: Option<Snowflake>The ID of the emoji.
name: StringThe name of the emoji.
roles: Vec<Snowflake>The roles that the emoji is whitelisted to.
user: Option<User>The user who created this emoji.
require_colons: Option<bool>Whether or not this emoji must be wrapped in colons.
managed: Option<bool>Whether or not this emoji is managed.
animated: Option<bool>Whether or not this emoji is animated.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Emoji
impl<'de> Deserialize<'de> for Emoji
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Emoji
impl RefUnwindSafe for Emoji
impl Send for Emoji
impl Sync for Emoji
impl Unpin for Emoji
impl UnwindSafe for Emoji
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