openapi_github/models/
webhook_github_app_authorization_revoked.rs1use 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#[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