openapi_github/models/
webhook_status_commit_commit.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct WebhookStatusCommitCommit {
16 #[serde(rename = "author")]
17 pub author: Box<models::WebhookStatusCommitCommitAuthor>,
18 #[serde(rename = "comment_count")]
19 pub comment_count: i32,
20 #[serde(rename = "committer")]
21 pub committer: Box<models::WebhookStatusCommitCommitAuthor>,
22 #[serde(rename = "message")]
23 pub message: String,
24 #[serde(rename = "tree")]
25 pub tree: Box<models::ShortBranchCommit>,
26 #[serde(rename = "url")]
27 pub url: String,
28 #[serde(rename = "verification")]
29 pub verification: Box<models::WebhookStatusCommitCommitVerification>,
30}
31
32impl WebhookStatusCommitCommit {
33 pub fn new(author: models::WebhookStatusCommitCommitAuthor, comment_count: i32, committer: models::WebhookStatusCommitCommitAuthor, message: String, tree: models::ShortBranchCommit, url: String, verification: models::WebhookStatusCommitCommitVerification) -> WebhookStatusCommitCommit {
34 WebhookStatusCommitCommit {
35 author: Box::new(author),
36 comment_count,
37 committer: Box::new(committer),
38 message,
39 tree: Box::new(tree),
40 url,
41 verification: Box::new(verification),
42 }
43 }
44}
45