octocrab/models/webhook_events/payload/
organization.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4#[non_exhaustive]
5pub struct OrganizationWebhookEventPayload {
6 pub action: OrganizationWebhookEventAction,
7 pub enterprise: Option<serde_json::Value>,
8 pub membership: Option<serde_json::Value>,
9 pub changes: Option<serde_json::Value>,
10}
11
12#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
13#[serde(rename_all = "snake_case")]
14#[non_exhaustive]
15pub enum OrganizationWebhookEventAction {
16 Deleted,
17 MemberAdded,
18 MemberInvited,
19 MemberRemoved,
20 Renamed,
21}