gitea_rs/models/
reaction.rs

1/*
2 * Gitea API.
3 *
4 * This documentation describes the Gitea API.
5 *
6 * The version of the OpenAPI document: 1.19.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// Reaction : Reaction contain one reaction
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct Reaction {
17    #[serde(rename = "content", skip_serializing_if = "Option::is_none")]
18    pub content: Option<String>,
19    #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
20    pub created_at: Option<String>,
21    #[serde(rename = "user", skip_serializing_if = "Option::is_none")]
22    pub user: Option<Box<crate::models::User>>,
23}
24
25impl Reaction {
26    /// Reaction contain one reaction
27    pub fn new() -> Reaction {
28        Reaction {
29            content: None,
30            created_at: None,
31            user: None,
32        }
33    }
34}
35
36