openapi_github/models/
added_to_project_issue_event_project_card.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct AddedToProjectIssueEventProjectCard {
16    #[serde(rename = "id")]
17    pub id: i32,
18    #[serde(rename = "url")]
19    pub url: String,
20    #[serde(rename = "project_id")]
21    pub project_id: i32,
22    #[serde(rename = "project_url")]
23    pub project_url: String,
24    #[serde(rename = "column_name")]
25    pub column_name: String,
26    #[serde(rename = "previous_column_name", skip_serializing_if = "Option::is_none")]
27    pub previous_column_name: Option<String>,
28}
29
30impl AddedToProjectIssueEventProjectCard {
31    pub fn new(id: i32, url: String, project_id: i32, project_url: String, column_name: String) -> AddedToProjectIssueEventProjectCard {
32        AddedToProjectIssueEventProjectCard {
33            id,
34            url,
35            project_id,
36            project_url,
37            column_name,
38            previous_column_name: None,
39        }
40    }
41}
42