openapi_github/models/
packages_billing_usage.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct PackagesBillingUsage {
16 #[serde(rename = "total_gigabytes_bandwidth_used")]
18 pub total_gigabytes_bandwidth_used: i32,
19 #[serde(rename = "total_paid_gigabytes_bandwidth_used")]
21 pub total_paid_gigabytes_bandwidth_used: i32,
22 #[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