openapi_github/models/
webhooks_project_column.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 WebhooksProjectColumn {
16    #[serde(rename = "after_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
17    pub after_id: Option<Option<i32>>,
18    #[serde(rename = "cards_url")]
19    pub cards_url: String,
20    #[serde(rename = "created_at")]
21    pub created_at: String,
22    /// The unique identifier of the project column
23    #[serde(rename = "id")]
24    pub id: i32,
25    /// Name of the project column
26    #[serde(rename = "name")]
27    pub name: String,
28    #[serde(rename = "node_id")]
29    pub node_id: String,
30    #[serde(rename = "project_url")]
31    pub project_url: String,
32    #[serde(rename = "updated_at")]
33    pub updated_at: String,
34    #[serde(rename = "url")]
35    pub url: String,
36}
37
38impl WebhooksProjectColumn {
39    pub fn new(cards_url: String, created_at: String, id: i32, name: String, node_id: String, project_url: String, updated_at: String, url: String) -> WebhooksProjectColumn {
40        WebhooksProjectColumn {
41            after_id: None,
42            cards_url,
43            created_at,
44            id,
45            name,
46            node_id,
47            project_url,
48            updated_at,
49            url,
50        }
51    }
52}
53