openapi_github/models/
runner_application.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/// RunnerApplication : Runner Application
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct RunnerApplication {
17    #[serde(rename = "os")]
18    pub os: String,
19    #[serde(rename = "architecture")]
20    pub architecture: String,
21    #[serde(rename = "download_url")]
22    pub download_url: String,
23    #[serde(rename = "filename")]
24    pub filename: String,
25    /// A short lived bearer token used to download the runner, if needed.
26    #[serde(rename = "temp_download_token", skip_serializing_if = "Option::is_none")]
27    pub temp_download_token: Option<String>,
28    #[serde(rename = "sha256_checksum", skip_serializing_if = "Option::is_none")]
29    pub sha256_checksum: Option<String>,
30}
31
32impl RunnerApplication {
33    /// Runner Application
34    pub fn new(os: String, architecture: String, download_url: String, filename: String) -> RunnerApplication {
35        RunnerApplication {
36            os,
37            architecture,
38            download_url,
39            filename,
40            temp_download_token: None,
41            sha256_checksum: None,
42        }
43    }
44}
45