openapi_github/models/
pending_deployment_environment.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 PendingDeploymentEnvironment {
16    /// The id of the environment.
17    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
18    pub id: Option<i32>,
19    #[serde(rename = "node_id", skip_serializing_if = "Option::is_none")]
20    pub node_id: Option<String>,
21    /// The name of the environment.
22    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
23    pub name: Option<String>,
24    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
25    pub url: Option<String>,
26    #[serde(rename = "html_url", skip_serializing_if = "Option::is_none")]
27    pub html_url: Option<String>,
28}
29
30impl PendingDeploymentEnvironment {
31    pub fn new() -> PendingDeploymentEnvironment {
32        PendingDeploymentEnvironment {
33            id: None,
34            node_id: None,
35            name: None,
36            url: None,
37            html_url: None,
38        }
39    }
40}
41