openapi_github/models/
pull_request_simple_labels_inner.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 PullRequestSimpleLabelsInner {
16    #[serde(rename = "id")]
17    pub id: i64,
18    #[serde(rename = "node_id")]
19    pub node_id: String,
20    #[serde(rename = "url")]
21    pub url: String,
22    #[serde(rename = "name")]
23    pub name: String,
24    #[serde(rename = "description")]
25    pub description: String,
26    #[serde(rename = "color")]
27    pub color: String,
28    #[serde(rename = "default")]
29    pub default: bool,
30}
31
32impl PullRequestSimpleLabelsInner {
33    pub fn new(id: i64, node_id: String, url: String, name: String, description: String, color: String, default: bool) -> PullRequestSimpleLabelsInner {
34        PullRequestSimpleLabelsInner {
35            id,
36            node_id,
37            url,
38            name,
39            description,
40            color,
41            default,
42        }
43    }
44}
45