openapi_github/models/
porter_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/// PorterAuthor : Porter Author
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PorterAuthor {
17    #[serde(rename = "id")]
18    pub id: i32,
19    #[serde(rename = "remote_id")]
20    pub remote_id: String,
21    #[serde(rename = "remote_name")]
22    pub remote_name: String,
23    #[serde(rename = "email")]
24    pub email: String,
25    #[serde(rename = "name")]
26    pub name: String,
27    #[serde(rename = "url")]
28    pub url: String,
29    #[serde(rename = "import_url")]
30    pub import_url: String,
31}
32
33impl PorterAuthor {
34    /// Porter Author
35    pub fn new(id: i32, remote_id: String, remote_name: String, email: String, name: String, url: String, import_url: String) -> PorterAuthor {
36        PorterAuthor {
37            id,
38            remote_id,
39            remote_name,
40            email,
41            name,
42            url,
43            import_url,
44        }
45    }
46}
47