openapi_github/models/
code_scanning_default_setup_update_response.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/// CodeScanningDefaultSetupUpdateResponse : You can use `run_url` to track the status of the run. This includes a property status and conclusion. You should not rely on this always being an actions workflow run object.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CodeScanningDefaultSetupUpdateResponse {
17    /// ID of the corresponding run.
18    #[serde(rename = "run_id", skip_serializing_if = "Option::is_none")]
19    pub run_id: Option<i32>,
20    /// URL of the corresponding run.
21    #[serde(rename = "run_url", skip_serializing_if = "Option::is_none")]
22    pub run_url: Option<String>,
23}
24
25impl CodeScanningDefaultSetupUpdateResponse {
26    /// You can use `run_url` to track the status of the run. This includes a property status and conclusion. You should not rely on this always being an actions workflow run object.
27    pub fn new() -> CodeScanningDefaultSetupUpdateResponse {
28        CodeScanningDefaultSetupUpdateResponse {
29            run_id: None,
30            run_url: None,
31        }
32    }
33}
34