#[non_exhaustive]pub enum ReactionChange<'a> {
Add {
sender_reaction_id: &'a str,
emoji: &'a str,
sent_at: &'a UTCDate,
},
Remove {
sender_reaction_id: &'a str,
},
}Expand description
A single reaction change in a Message/set patch (JMAP Chat §4.5).
The patch key is reactions/<senderReactionId> (JSON Pointer).
senderReactionId is a caller-generated ID (e.g. ULID) that uniquely
identifies this reaction slot for the sending user in this message.
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 a reaction. Patch value: {emoji, sentAt}.
Fields
Remove
Remove a reaction. Patch value: null.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ReactionChange<'a>
impl<'a> RefUnwindSafe for ReactionChange<'a>
impl<'a> Send for ReactionChange<'a>
impl<'a> Sync for ReactionChange<'a>
impl<'a> Unpin for ReactionChange<'a>
impl<'a> UnsafeUnpin for ReactionChange<'a>
impl<'a> UnwindSafe for ReactionChange<'a>
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