openapi-github 0.1.0

OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs
Documentation
/*
 * GitHub's official OpenAPI spec + Octokit extension
 *
 * OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs
 *
 * The version of the OpenAPI document: 16.6.0
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AddedToProjectIssueEventProjectCard {
    #[serde(rename = "id")]
    pub id: i32,
    #[serde(rename = "url")]
    pub url: String,
    #[serde(rename = "project_id")]
    pub project_id: i32,
    #[serde(rename = "project_url")]
    pub project_url: String,
    #[serde(rename = "column_name")]
    pub column_name: String,
    #[serde(rename = "previous_column_name", skip_serializing_if = "Option::is_none")]
    pub previous_column_name: Option<String>,
}

impl AddedToProjectIssueEventProjectCard {
    pub fn new(id: i32, url: String, project_id: i32, project_url: String, column_name: String) -> AddedToProjectIssueEventProjectCard {
        AddedToProjectIssueEventProjectCard {
            id,
            url,
            project_id,
            project_url,
            column_name,
            previous_column_name: None,
        }
    }
}