pub enum Reaction {
Empty,
Emoji(ReactionEmoji),
CustomEmoji(ReactionCustomEmoji),
Paid,
}Expand description
Variants§
Trait Implementations§
Source§impl Deserializable for Reaction
impl Deserializable for Reaction
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<ReactionCustomEmoji> for Reaction
impl From<ReactionCustomEmoji> for Reaction
Source§fn from(x: ReactionCustomEmoji) -> Self
fn from(x: ReactionCustomEmoji) -> Self
Converts to this type from the input type.
Source§impl From<ReactionEmoji> for Reaction
impl From<ReactionEmoji> for Reaction
Source§fn from(x: ReactionEmoji) -> Self
fn from(x: ReactionEmoji) -> Self
Converts to this type from the input type.
Source§impl From<ReactionEmpty> for Reaction
impl From<ReactionEmpty> for Reaction
Source§fn from(_x: ReactionEmpty) -> Self
fn from(_x: ReactionEmpty) -> Self
Converts to this type from the input type.
Source§impl From<ReactionPaid> for Reaction
impl From<ReactionPaid> for Reaction
Source§fn from(_x: ReactionPaid) -> Self
fn from(_x: ReactionPaid) -> Self
Converts to this type from the input type.
Source§impl Serializable for Reaction
impl Serializable for Reaction
Source§impl TryFrom<Reaction> for ReactionCustomEmoji
impl TryFrom<Reaction> for ReactionCustomEmoji
Source§impl TryFrom<Reaction> for ReactionEmoji
impl TryFrom<Reaction> for ReactionEmoji
impl StructuralPartialEq for Reaction
Auto Trait Implementations§
impl Freeze for Reaction
impl RefUnwindSafe for Reaction
impl Send for Reaction
impl Sync for Reaction
impl Unpin for Reaction
impl UnsafeUnpin for Reaction
impl UnwindSafe for Reaction
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