openapi_github/models/
webhooks_workflow_job_run.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 WebhooksWorkflowJobRun {
16    #[serde(rename = "conclusion", deserialize_with = "Option::deserialize")]
17    pub conclusion: Option<serde_json::Value>,
18    #[serde(rename = "created_at")]
19    pub created_at: String,
20    #[serde(rename = "environment")]
21    pub environment: String,
22    #[serde(rename = "html_url")]
23    pub html_url: String,
24    #[serde(rename = "id")]
25    pub id: i32,
26    #[serde(rename = "name", deserialize_with = "Option::deserialize")]
27    pub name: Option<serde_json::Value>,
28    #[serde(rename = "status")]
29    pub status: String,
30    #[serde(rename = "updated_at")]
31    pub updated_at: String,
32}
33
34impl WebhooksWorkflowJobRun {
35    pub fn new(conclusion: Option<serde_json::Value>, created_at: String, environment: String, html_url: String, id: i32, name: Option<serde_json::Value>, status: String, updated_at: String) -> WebhooksWorkflowJobRun {
36        WebhooksWorkflowJobRun {
37            conclusion,
38            created_at,
39            environment,
40            html_url,
41            id,
42            name,
43            status,
44            updated_at,
45        }
46    }
47}
48