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