openapi_github/models/
webhook_team_edited_changes.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/// WebhookTeamEditedChanges : The changes to the team if the action was `edited`.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct WebhookTeamEditedChanges {
17    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
18    pub description: Option<Box<models::WebhookLabelEditedChangesDescription>>,
19    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
20    pub name: Option<Box<models::WebhookLabelEditedChangesName>>,
21    #[serde(rename = "privacy", skip_serializing_if = "Option::is_none")]
22    pub privacy: Option<Box<models::WebhookTeamEditedChangesPrivacy>>,
23    #[serde(rename = "notification_setting", skip_serializing_if = "Option::is_none")]
24    pub notification_setting: Option<Box<models::WebhookTeamEditedChangesNotificationSetting>>,
25    #[serde(rename = "repository", skip_serializing_if = "Option::is_none")]
26    pub repository: Option<Box<models::WebhookTeamEditedChangesRepository>>,
27}
28
29impl WebhookTeamEditedChanges {
30    /// The changes to the team if the action was `edited`.
31    pub fn new() -> WebhookTeamEditedChanges {
32        WebhookTeamEditedChanges {
33            description: None,
34            name: None,
35            privacy: None,
36            notification_setting: None,
37            repository: None,
38        }
39    }
40}
41