openapi_github/models/
nullable_simple_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/// NullableSimpleCommitAuthor : Information about the Git author
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct NullableSimpleCommitAuthor {
17    /// Name of the commit's author
18    #[serde(rename = "name")]
19    pub name: String,
20    /// Git email address of the commit's author
21    #[serde(rename = "email")]
22    pub email: String,
23}
24
25impl NullableSimpleCommitAuthor {
26    /// Information about the Git author
27    pub fn new(name: String, email: String) -> NullableSimpleCommitAuthor {
28        NullableSimpleCommitAuthor {
29            name,
30            email,
31        }
32    }
33}
34