openapi_github/models/git_create_commit_request_committer.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/// GitCreateCommitRequestCommitter : Information about the person who is making the commit. By default, `committer` will use the information set in `author`. See the `author` and `committer` object below for details.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct GitCreateCommitRequestCommitter {
17 /// The name of the author (or committer) of the commit
18 #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
19 pub name: Option<String>,
20 /// The email of the author (or committer) of the commit
21 #[serde(rename = "email", skip_serializing_if = "Option::is_none")]
22 pub email: Option<String>,
23 /// Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.
24 #[serde(rename = "date", skip_serializing_if = "Option::is_none")]
25 pub date: Option<String>,
26}
27
28impl GitCreateCommitRequestCommitter {
29 /// Information about the person who is making the commit. By default, `committer` will use the information set in `author`. See the `author` and `committer` object below for details.
30 pub fn new() -> GitCreateCommitRequestCommitter {
31 GitCreateCommitRequestCommitter {
32 name: None,
33 email: None,
34 date: None,
35 }
36 }
37}
38