openapi_github/models/
reaction_rollup.rs

1/*
2 * GitHub's official OpenAPI spec + Octokit extension
3 *
4 * OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs
5 *
6 * The version of the OpenAPI document: 16.6.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ReactionRollup {
16    #[serde(rename = "url")]
17    pub url: String,
18    #[serde(rename = "total_count")]
19    pub total_count: i32,
20    #[serde(rename = "+1")]
21    pub plus_1: i32,
22    #[serde(rename = "-1")]
23    pub _1: i32,
24    #[serde(rename = "laugh")]
25    pub laugh: i32,
26    #[serde(rename = "confused")]
27    pub confused: i32,
28    #[serde(rename = "heart")]
29    pub heart: i32,
30    #[serde(rename = "hooray")]
31    pub hooray: i32,
32    #[serde(rename = "eyes")]
33    pub eyes: i32,
34    #[serde(rename = "rocket")]
35    pub rocket: i32,
36}
37
38impl ReactionRollup {
39    pub fn new(url: String, total_count: i32, plus_1: i32, _1: i32, laugh: i32, confused: i32, heart: i32, hooray: i32, eyes: i32, rocket: i32) -> ReactionRollup {
40        ReactionRollup {
41            url,
42            total_count,
43            plus_1,
44            _1,
45            laugh,
46            confused,
47            heart,
48            hooray,
49            eyes,
50            rocket,
51        }
52    }
53}
54