openapi_github/models/
combined_billing_usage.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 CombinedBillingUsage {
16    /// Numbers of days left in billing cycle.
17    #[serde(rename = "days_left_in_billing_cycle")]
18    pub days_left_in_billing_cycle: i32,
19    /// Estimated storage space (GB) used in billing cycle.
20    #[serde(rename = "estimated_paid_storage_for_month")]
21    pub estimated_paid_storage_for_month: i32,
22    /// Estimated sum of free and paid storage space (GB) used in billing cycle.
23    #[serde(rename = "estimated_storage_for_month")]
24    pub estimated_storage_for_month: i32,
25}
26
27impl CombinedBillingUsage {
28    pub fn new(days_left_in_billing_cycle: i32, estimated_paid_storage_for_month: i32, estimated_storage_for_month: i32) -> CombinedBillingUsage {
29        CombinedBillingUsage {
30            days_left_in_billing_cycle,
31            estimated_paid_storage_for_month,
32            estimated_storage_for_month,
33        }
34    }
35}
36