pub struct ReactionCount {
pub emoji: String,
pub count: u32,
pub me: bool,
}Expand description
reactions: [{emoji, count, me}] (§8.5).
Fields§
§emoji: StringThe emoji.
count: u32How many members reacted with it.
me: boolWhether the viewer is one of them.
Trait Implementations§
Source§impl Clone for ReactionCount
impl Clone for ReactionCount
Source§fn clone(&self) -> ReactionCount
fn clone(&self) -> ReactionCount
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReactionCount
impl Debug for ReactionCount
Source§impl<'de> Deserialize<'de> for ReactionCount
impl<'de> Deserialize<'de> for ReactionCount
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
impl Eq for ReactionCount
Source§impl PartialEq for ReactionCount
impl PartialEq for ReactionCount
Source§impl Serialize for ReactionCount
impl Serialize for ReactionCount
impl StructuralPartialEq for ReactionCount
Auto Trait Implementations§
impl Freeze for ReactionCount
impl RefUnwindSafe for ReactionCount
impl Send for ReactionCount
impl Sync for ReactionCount
impl Unpin for ReactionCount
impl UnsafeUnpin for ReactionCount
impl UnwindSafe for ReactionCount
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