pub struct Emoji<'a> {
pub id: Option<Snowflake>,
pub name: Option<TitanString<'a>>,
pub roles: SmallVec<[Snowflake; 8]>,
pub user: Option<User<'a>>,
pub require_colons: bool,
pub managed: bool,
pub animated: bool,
pub available: bool,
}Expand description
An emoji in a guild.
Fields§
§id: Option<Snowflake>Emoji ID.
name: Option<TitanString<'a>>Emoji name (can be null for reaction emoji objects).
roles: SmallVec<[Snowflake; 8]>Roles allowed to use this emoji.
user: Option<User<'a>>User that created this emoji.
require_colons: boolWhether this emoji must be wrapped in colons.
managed: boolWhether this emoji is managed.
animated: boolWhether this emoji is animated.
available: boolWhether this emoji can be used.
Implementations§
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for Emoji<'a>
impl<'de, 'a> Deserialize<'de> for Emoji<'a>
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<'a> Freeze for Emoji<'a>
impl<'a> RefUnwindSafe for Emoji<'a>
impl<'a> Send for Emoji<'a>
impl<'a> Sync for Emoji<'a>
impl<'a> Unpin for Emoji<'a>
impl<'a> UnwindSafe for Emoji<'a>
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