openapi_github/models/
webhook_github_app_authorization_revoked.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 WebhookGithubAppAuthorizationRevoked {
16    #[serde(rename = "action")]
17    pub action: Action,
18    #[serde(rename = "sender")]
19    pub sender: Box<models::SimpleUserWebhooks>,
20}
21
22impl WebhookGithubAppAuthorizationRevoked {
23    pub fn new(action: Action, sender: models::SimpleUserWebhooks) -> WebhookGithubAppAuthorizationRevoked {
24        WebhookGithubAppAuthorizationRevoked {
25            action,
26            sender: Box::new(sender),
27        }
28    }
29}
30/// 
31#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
32pub enum Action {
33    #[serde(rename = "revoked")]
34    Revoked,
35}
36
37impl Default for Action {
38    fn default() -> Action {
39        Self::Revoked
40    }
41}
42