openapi_github/models/
reactions_create_for_release_request.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 ReactionsCreateForReleaseRequest {
16    /// The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the release.
17    #[serde(rename = "content")]
18    pub content: Content,
19}
20
21impl ReactionsCreateForReleaseRequest {
22    pub fn new(content: Content) -> ReactionsCreateForReleaseRequest {
23        ReactionsCreateForReleaseRequest {
24            content,
25        }
26    }
27}
28/// The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the release.
29#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
30pub enum Content {
31    #[serde(rename = "+1")]
32    Plus1,
33    #[serde(rename = "laugh")]
34    Laugh,
35    #[serde(rename = "heart")]
36    Heart,
37    #[serde(rename = "hooray")]
38    Hooray,
39    #[serde(rename = "rocket")]
40    Rocket,
41    #[serde(rename = "eyes")]
42    Eyes,
43}
44
45impl Default for Content {
46    fn default() -> Content {
47        Self::Plus1
48    }
49}
50