openapi_github/models/
environment_approvals_environments_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 EnvironmentApprovalsEnvironmentsInner {
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    /// The time that the environment was created, in ISO 8601 format.
29    #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
30    pub created_at: Option<String>,
31    /// The time that the environment was last updated, in ISO 8601 format.
32    #[serde(rename = "updated_at", skip_serializing_if = "Option::is_none")]
33    pub updated_at: Option<String>,
34}
35
36impl EnvironmentApprovalsEnvironmentsInner {
37    pub fn new() -> EnvironmentApprovalsEnvironmentsInner {
38        EnvironmentApprovalsEnvironmentsInner {
39            id: None,
40            node_id: None,
41            name: None,
42            url: None,
43            html_url: None,
44            created_at: None,
45            updated_at: None,
46        }
47    }
48}
49