gitea_client/models/
reaction.rs

1/*
2 * Gitea API
3 *
4 * This documentation describes the Gitea API.
5 *
6 * The version of the OpenAPI document: 1.22.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Reaction : Reaction contain one reaction
15#[derive(Clone, Default, Debug, PartialEq, 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<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