openapi_github/models/
packages_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 PackagesBillingUsage {
16    /// Sum of the free and paid storage space (GB) for GitHuub Packages.
17    #[serde(rename = "total_gigabytes_bandwidth_used")]
18    pub total_gigabytes_bandwidth_used: i32,
19    /// Total paid storage space (GB) for GitHuub Packages.
20    #[serde(rename = "total_paid_gigabytes_bandwidth_used")]
21    pub total_paid_gigabytes_bandwidth_used: i32,
22    /// Free storage space (GB) for GitHub Packages.
23    #[serde(rename = "included_gigabytes_bandwidth")]
24    pub included_gigabytes_bandwidth: i32,
25}
26
27impl PackagesBillingUsage {
28    pub fn new(total_gigabytes_bandwidth_used: i32, total_paid_gigabytes_bandwidth_used: i32, included_gigabytes_bandwidth: i32) -> PackagesBillingUsage {
29        PackagesBillingUsage {
30            total_gigabytes_bandwidth_used,
31            total_paid_gigabytes_bandwidth_used,
32            included_gigabytes_bandwidth,
33        }
34    }
35}
36