openapi_github/models/
timeline_commit_commented_event.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/// TimelineCommitCommentedEvent : Timeline Commit Commented Event
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct TimelineCommitCommentedEvent {
17    #[serde(rename = "event", skip_serializing_if = "Option::is_none")]
18    pub event: Option<String>,
19    #[serde(rename = "node_id", skip_serializing_if = "Option::is_none")]
20    pub node_id: Option<String>,
21    #[serde(rename = "commit_id", skip_serializing_if = "Option::is_none")]
22    pub commit_id: Option<String>,
23    #[serde(rename = "comments", skip_serializing_if = "Option::is_none")]
24    pub comments: Option<Vec<models::CommitComment>>,
25}
26
27impl TimelineCommitCommentedEvent {
28    /// Timeline Commit Commented Event
29    pub fn new() -> TimelineCommitCommentedEvent {
30        TimelineCommitCommentedEvent {
31            event: None,
32            node_id: None,
33            commit_id: None,
34            comments: None,
35        }
36    }
37}
38