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