openapi_github/models/
check_run_output.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 CheckRunOutput {
16    #[serde(rename = "title", deserialize_with = "Option::deserialize")]
17    pub title: Option<String>,
18    #[serde(rename = "summary", deserialize_with = "Option::deserialize")]
19    pub summary: Option<String>,
20    #[serde(rename = "text", deserialize_with = "Option::deserialize")]
21    pub text: Option<String>,
22    #[serde(rename = "annotations_count")]
23    pub annotations_count: i32,
24    #[serde(rename = "annotations_url")]
25    pub annotations_url: String,
26}
27
28impl CheckRunOutput {
29    pub fn new(title: Option<String>, summary: Option<String>, text: Option<String>, annotations_count: i32, annotations_url: String) -> CheckRunOutput {
30        CheckRunOutput {
31            title,
32            summary,
33            text,
34            annotations_count,
35            annotations_url,
36        }
37    }
38}
39