openapi_github/models/
organization_full_plan.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 OrganizationFullPlan {
16    #[serde(rename = "name")]
17    pub name: String,
18    #[serde(rename = "space")]
19    pub space: i32,
20    #[serde(rename = "private_repos")]
21    pub private_repos: i32,
22    #[serde(rename = "filled_seats", skip_serializing_if = "Option::is_none")]
23    pub filled_seats: Option<i32>,
24    #[serde(rename = "seats", skip_serializing_if = "Option::is_none")]
25    pub seats: Option<i32>,
26}
27
28impl OrganizationFullPlan {
29    pub fn new(name: String, space: i32, private_repos: i32) -> OrganizationFullPlan {
30        OrganizationFullPlan {
31            name,
32            space,
33            private_repos,
34            filled_seats: None,
35            seats: None,
36        }
37    }
38}
39