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};

/// IssueEventProjectCard : Issue Event Project Card
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct IssueEventProjectCard {
    #[serde(rename = "url")]
    pub url: String,
    #[serde(rename = "id")]
    pub id: i32,
    #[serde(rename = "project_url")]
    pub project_url: String,
    #[serde(rename = "project_id")]
    pub project_id: i32,
    #[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 IssueEventProjectCard {
    /// Issue Event Project Card
    pub fn new(url: String, id: i32, project_url: String, project_id: i32, column_name: String) -> IssueEventProjectCard {
        IssueEventProjectCard {
            url,
            id,
            project_url,
            project_id,
            column_name,
            previous_column_name: None,
        }
    }
}