openapi_github/models/git_commit_author.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/// GitCommitAuthor : Identifying information for the git-user
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct GitCommitAuthor {
17 /// Timestamp of the commit
18 #[serde(rename = "date")]
19 pub date: String,
20 /// Git email address of the user
21 #[serde(rename = "email")]
22 pub email: String,
23 /// Name of the git user
24 #[serde(rename = "name")]
25 pub name: String,
26}
27
28impl GitCommitAuthor {
29 /// Identifying information for the git-user
30 pub fn new(date: String, email: String, name: String) -> GitCommitAuthor {
31 GitCommitAuthor {
32 date,
33 email,
34 name,
35 }
36 }
37}
38