#[non_exhaustive]pub enum ReactionAction {
Add,
Remove {
removed: Reaction,
},
}Expand description
The action of a OutboundEvent::ReactionUpdate
(draft-atwood-jmap-chat-federation-00 §Peer/deliver reactionUpdate).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Add
"add". The reaction (emoji, customEmojiId, sentAt) is read
from the stored Message’s reactions map under the
senderReactionId. Also reported when the owner replaces one of
their reactions under the same key.
Remove
"remove", with the reaction as it was stored before the removal,
since the stored Message no longer holds it. Reported only when the
key named a stored reaction.
Trait Implementations§
Source§impl Clone for ReactionAction
impl Clone for ReactionAction
Source§impl Debug for ReactionAction
impl Debug for ReactionAction
Source§impl PartialEq for ReactionAction
impl PartialEq for ReactionAction
impl StructuralPartialEq for ReactionAction
Auto Trait Implementations§
impl Freeze for ReactionAction
impl RefUnwindSafe for ReactionAction
impl Send for ReactionAction
impl Sync for ReactionAction
impl Unpin for ReactionAction
impl UnsafeUnpin for ReactionAction
impl UnwindSafe for ReactionAction
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