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