openapi_github/models/
webhook_project_card_moved_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 WebhookProjectCardMovedProjectCard {
16    #[serde(rename = "after_id", deserialize_with = "Option::deserialize")]
17    pub after_id: Option<f64>,
18    #[serde(rename = "archived")]
19    pub archived: bool,
20    #[serde(rename = "column_id")]
21    pub column_id: i32,
22    #[serde(rename = "column_url")]
23    pub column_url: String,
24    #[serde(rename = "content_url", skip_serializing_if = "Option::is_none")]
25    pub content_url: Option<String>,
26    #[serde(rename = "created_at")]
27    pub created_at: String,
28    #[serde(rename = "creator", deserialize_with = "Option::deserialize")]
29    pub creator: Option<Box<models::WebhookProjectCardMovedProjectCardAllOfCreator>>,
30    #[serde(rename = "id")]
31    pub id: i32,
32    #[serde(rename = "node_id")]
33    pub node_id: String,
34    #[serde(rename = "note", deserialize_with = "Option::deserialize")]
35    pub note: Option<String>,
36    #[serde(rename = "project_url")]
37    pub project_url: String,
38    #[serde(rename = "updated_at")]
39    pub updated_at: String,
40    #[serde(rename = "url")]
41    pub url: String,
42}
43
44impl WebhookProjectCardMovedProjectCard {
45    pub fn new(after_id: Option<f64>, archived: bool, column_id: i32, column_url: String, created_at: String, creator: Option<models::WebhookProjectCardMovedProjectCardAllOfCreator>, id: i32, node_id: String, note: Option<String>, project_url: String, updated_at: String, url: String) -> WebhookProjectCardMovedProjectCard {
46        WebhookProjectCardMovedProjectCard {
47            after_id,
48            archived,
49            column_id,
50            column_url,
51            content_url: None,
52            created_at,
53            creator: creator.map(Box::new),
54            id,
55            node_id,
56            note,
57            project_url,
58            updated_at,
59            url,
60        }
61    }
62}
63