// Code generated by oagen. DO NOT EDIT.
#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
/// The event payload.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct OrganizationMembershipDeletedData {
/// Distinguishes the organization membership object.
pub object: String,
/// Unique identifier of the organization membership.
pub id: String,
/// The ID of the user.
pub user_id: String,
/// The ID of the organization.
pub organization_id: String,
/// The status of the organization membership.
pub status: OrganizationMembershipDeletedDataStatus,
/// The role associated with the membership.
pub role: SlimRole,
/// The roles associated with the membership.
#[serde(skip_serializing_if = "Option::is_none", default)]
pub roles: Option<Vec<SlimRole>>,
/// Custom attributes associated with the membership.
pub custom_attributes: std::collections::HashMap<String, serde_json::Value>,
/// Whether the membership is managed by a directory sync provider.
pub directory_managed: bool,
/// An ISO 8601 timestamp.
pub created_at: String,
/// An ISO 8601 timestamp.
pub updated_at: String,
}