openapi_github/models/
repos_get_all_environments_200_response.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 ReposGetAllEnvironments200Response {
16    /// The number of environments in this repository
17    #[serde(rename = "total_count", skip_serializing_if = "Option::is_none")]
18    pub total_count: Option<i32>,
19    #[serde(rename = "environments", skip_serializing_if = "Option::is_none")]
20    pub environments: Option<Vec<models::Environment>>,
21}
22
23impl ReposGetAllEnvironments200Response {
24    pub fn new() -> ReposGetAllEnvironments200Response {
25        ReposGetAllEnvironments200Response {
26            total_count: None,
27            environments: None,
28        }
29    }
30}
31