openapi_github/models/
workflow_run_usage_billable_ubuntu.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 WorkflowRunUsageBillableUbuntu {
16    #[serde(rename = "total_ms")]
17    pub total_ms: i32,
18    #[serde(rename = "jobs")]
19    pub jobs: i32,
20    #[serde(rename = "job_runs", skip_serializing_if = "Option::is_none")]
21    pub job_runs: Option<Vec<models::WorkflowRunUsageBillableUbuntuJobRunsInner>>,
22}
23
24impl WorkflowRunUsageBillableUbuntu {
25    pub fn new(total_ms: i32, jobs: i32) -> WorkflowRunUsageBillableUbuntu {
26        WorkflowRunUsageBillableUbuntu {
27            total_ms,
28            jobs,
29            job_runs: None,
30        }
31    }
32}
33