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