f3_rs/
reaction.rs

1// Copyright (C) 2023  Aravinth Manivannan <realaravinth@batsense.net>
2// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
3//
4// SPDX-License-Identifier: MIT
5
6//! Reaction associated to an issue or a comment
7use serde::{Deserialize, Serialize};
8
9/// Reaction associated to an issue or a comment
10#[derive(Clone, Debug, Serialize, Deserialize, Default, Eq, PartialEq)]
11pub struct Reaction {
12    /// Unique identifier of the reaction
13    pub index: usize,
14
15    /// Unique identifier of the user who authored the reaction
16    pub user_id: String,
17
18    /// Representation of the reaction
19    pub content: String,
20}