openapi_github/models/
copilot_seat_breakdown.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/// CopilotSeatBreakdown : The breakdown of Copilot Business seats for the organization.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CopilotSeatBreakdown {
17    /// The total number of seats being billed for the organization as of the current billing cycle.
18    #[serde(rename = "total", skip_serializing_if = "Option::is_none")]
19    pub total: Option<i32>,
20    /// Seats added during the current billing cycle.
21    #[serde(rename = "added_this_cycle", skip_serializing_if = "Option::is_none")]
22    pub added_this_cycle: Option<i32>,
23    /// The number of seats that are pending cancellation at the end of the current billing cycle.
24    #[serde(rename = "pending_cancellation", skip_serializing_if = "Option::is_none")]
25    pub pending_cancellation: Option<i32>,
26    /// The number of seats that have been assigned to users that have not yet accepted an invitation to this organization.
27    #[serde(rename = "pending_invitation", skip_serializing_if = "Option::is_none")]
28    pub pending_invitation: Option<i32>,
29    /// The number of seats that have used Copilot during the current billing cycle.
30    #[serde(rename = "active_this_cycle", skip_serializing_if = "Option::is_none")]
31    pub active_this_cycle: Option<i32>,
32    /// The number of seats that have not used Copilot during the current billing cycle.
33    #[serde(rename = "inactive_this_cycle", skip_serializing_if = "Option::is_none")]
34    pub inactive_this_cycle: Option<i32>,
35}
36
37impl CopilotSeatBreakdown {
38    /// The breakdown of Copilot Business seats for the organization.
39    pub fn new() -> CopilotSeatBreakdown {
40        CopilotSeatBreakdown {
41            total: None,
42            added_this_cycle: None,
43            pending_cancellation: None,
44            pending_invitation: None,
45            active_this_cycle: None,
46            inactive_this_cycle: None,
47        }
48    }
49}
50