openapi_github/models/
webhook_project_column_deleted.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 WebhookProjectColumnDeleted {
16    #[serde(rename = "action")]
17    pub action: Action,
18    #[serde(rename = "enterprise", skip_serializing_if = "Option::is_none")]
19    pub enterprise: Option<Box<models::EnterpriseWebhooks>>,
20    #[serde(rename = "installation", skip_serializing_if = "Option::is_none")]
21    pub installation: Option<Box<models::SimpleInstallation>>,
22    #[serde(rename = "organization", skip_serializing_if = "Option::is_none")]
23    pub organization: Option<Box<models::OrganizationSimpleWebhooks>>,
24    #[serde(rename = "project_column")]
25    pub project_column: Box<models::WebhooksProjectColumn>,
26    #[serde(rename = "repository", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
27    pub repository: Option<Option<Box<models::NullableRepositoryWebhooks>>>,
28    #[serde(rename = "sender", skip_serializing_if = "Option::is_none")]
29    pub sender: Option<Box<models::SimpleUserWebhooks>>,
30}
31
32impl WebhookProjectColumnDeleted {
33    pub fn new(action: Action, project_column: models::WebhooksProjectColumn) -> WebhookProjectColumnDeleted {
34        WebhookProjectColumnDeleted {
35            action,
36            enterprise: None,
37            installation: None,
38            organization: None,
39            project_column: Box::new(project_column),
40            repository: None,
41            sender: None,
42        }
43    }
44}
45/// 
46#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
47pub enum Action {
48    #[serde(rename = "deleted")]
49    Deleted,
50}
51
52impl Default for Action {
53    fn default() -> Action {
54        Self::Deleted
55    }
56}
57