openapi_github/models/
check_run_with_simple_check_suite_output.rs1use 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