pub struct Reaction {
pub emoji: String,
pub position: u32,
pub on: bool,
}Expand description
A reaction to the message at transcript position. It travels as its own
USER message; chat UIs fold it onto that message instead of drawing a bubble.
on: false takes the reaction back; the latest one per person, message and
emoji wins.
Fields§
§emoji: String§position: u32§on: boolTrait Implementations§
Source§impl<'de> Deserialize<'de> for Reaction
impl<'de> Deserialize<'de> for Reaction
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 StructuralPartialEq for Reaction
Auto Trait Implementations§
impl Forget for Reaction
impl Freeze for Reaction
impl Move for Reaction
impl RefUnwindSafe for Reaction
impl Send for Reaction
impl Sync for Reaction
impl Unpin for Reaction
impl UnsafeUnpin for Reaction
impl UnwindSafe for Reaction
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