1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
* GitHub's official OpenAPI spec + Octokit extension
*
* OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs
*
* The version of the OpenAPI document: 16.6.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// CopilotSeatBreakdown : The breakdown of Copilot Business seats for the organization.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CopilotSeatBreakdown {
/// The total number of seats being billed for the organization as of the current billing cycle.
#[serde(rename = "total", skip_serializing_if = "Option::is_none")]
pub total: Option<i32>,
/// Seats added during the current billing cycle.
#[serde(rename = "added_this_cycle", skip_serializing_if = "Option::is_none")]
pub added_this_cycle: Option<i32>,
/// The number of seats that are pending cancellation at the end of the current billing cycle.
#[serde(rename = "pending_cancellation", skip_serializing_if = "Option::is_none")]
pub pending_cancellation: Option<i32>,
/// The number of seats that have been assigned to users that have not yet accepted an invitation to this organization.
#[serde(rename = "pending_invitation", skip_serializing_if = "Option::is_none")]
pub pending_invitation: Option<i32>,
/// The number of seats that have used Copilot during the current billing cycle.
#[serde(rename = "active_this_cycle", skip_serializing_if = "Option::is_none")]
pub active_this_cycle: Option<i32>,
/// The number of seats that have not used Copilot during the current billing cycle.
#[serde(rename = "inactive_this_cycle", skip_serializing_if = "Option::is_none")]
pub inactive_this_cycle: Option<i32>,
}
impl CopilotSeatBreakdown {
/// The breakdown of Copilot Business seats for the organization.
pub fn new() -> CopilotSeatBreakdown {
CopilotSeatBreakdown {
total: None,
added_this_cycle: None,
pending_cancellation: None,
pending_invitation: None,
active_this_cycle: None,
inactive_this_cycle: None,
}
}
}