pub struct MessageReaction {
pub type: ReactionType,
pub total_count: i32,
pub is_chosen: bool,
pub used_sender_id: Option<MessageSender>,
pub recent_sender_ids: Vec<MessageSender>,
}
Expand description
Contains information about a reaction to a message
Fields§
§type: ReactionType
Type of the reaction
total_count: i32
Number of times the reaction was added
is_chosen: bool
True, if the reaction is chosen by the current user
used_sender_id: Option<MessageSender>
Identifier of the message sender used by the current user to add the reaction; may be null if unknown or the reaction isn’t chosen
recent_sender_ids: Vec<MessageSender>
Identifiers of at most 3 recent message senders, added the reaction; available in private, basic group and supergroup chats
Trait Implementations§
Source§impl Clone for MessageReaction
impl Clone for MessageReaction
Source§fn clone(&self) -> MessageReaction
fn clone(&self) -> MessageReaction
Returns a duplicate of the value. Read more
1.0.0 · 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 MessageReaction
impl Debug for MessageReaction
Source§impl<'de> Deserialize<'de> for MessageReaction
impl<'de> Deserialize<'de> for MessageReaction
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
Source§impl PartialEq for MessageReaction
impl PartialEq for MessageReaction
Source§impl Serialize for MessageReaction
impl Serialize for MessageReaction
impl StructuralPartialEq for MessageReaction
Auto Trait Implementations§
impl Freeze for MessageReaction
impl RefUnwindSafe for MessageReaction
impl Send for MessageReaction
impl Sync for MessageReaction
impl Unpin for MessageReaction
impl UnwindSafe for MessageReaction
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