pub struct MessageReactionUpdated {
pub chat: Chat,
pub message_id: i64,
pub user: Option<User>,
pub actor_chat: Option<Chat>,
pub date: i64,
pub old_reaction: Vec<ReactionType>,
pub new_reaction: Vec<ReactionType>,
}Expand description
A reaction to a message changed by a user.
Fields§
§chat: ChatThe chat containing the message.
message_id: i64Identifier of the message that was reacted to.
user: Option<User>The user who changed the reaction (non-anonymous reactions only).
actor_chat: Option<Chat>The chat that changed the reaction (anonymous reactions in groups).
date: i64Date of the change, as a Unix timestamp.
old_reaction: Vec<ReactionType>Previous list of reactions.
new_reaction: Vec<ReactionType>New list of reactions.
Trait Implementations§
Source§impl Clone for MessageReactionUpdated
impl Clone for MessageReactionUpdated
Source§fn clone(&self) -> MessageReactionUpdated
fn clone(&self) -> MessageReactionUpdated
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 MessageReactionUpdated
impl Debug for MessageReactionUpdated
Source§impl<'de> Deserialize<'de> for MessageReactionUpdated
impl<'de> Deserialize<'de> for MessageReactionUpdated
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 MessageReactionUpdated
impl RefUnwindSafe for MessageReactionUpdated
impl Send for MessageReactionUpdated
impl Sync for MessageReactionUpdated
impl Unpin for MessageReactionUpdated
impl UnsafeUnpin for MessageReactionUpdated
impl UnwindSafe for MessageReactionUpdated
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