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