openapi_github/models/
actions_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 ActionsBillingUsage {
16    /// The sum of the free and paid GitHub Actions minutes used.
17    #[serde(rename = "total_minutes_used")]
18    pub total_minutes_used: i32,
19    /// The total paid GitHub Actions minutes used.
20    #[serde(rename = "total_paid_minutes_used")]
21    pub total_paid_minutes_used: i32,
22    /// The amount of free GitHub Actions minutes available.
23    #[serde(rename = "included_minutes")]
24    pub included_minutes: i32,
25    #[serde(rename = "minutes_used_breakdown")]
26    pub minutes_used_breakdown: Box<models::ActionsBillingUsageMinutesUsedBreakdown>,
27}
28
29impl ActionsBillingUsage {
30    pub fn new(total_minutes_used: i32, total_paid_minutes_used: i32, included_minutes: i32, minutes_used_breakdown: models::ActionsBillingUsageMinutesUsedBreakdown) -> ActionsBillingUsage {
31        ActionsBillingUsage {
32            total_minutes_used,
33            total_paid_minutes_used,
34            included_minutes,
35            minutes_used_breakdown: Box::new(minutes_used_breakdown),
36        }
37    }
38}
39