/*
 * Zernio API
 *
 * API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
 *
 * The version of the OpenAPI document: 1.0.4
 * Contact: support@zernio.com
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CreateDiscordScheduledEventRequestEntity {
    CreateDiscordScheduledEventRequestEntityOneOf(
        Box<models::CreateDiscordScheduledEventRequestEntityOneOf>,
    ),
    CreateDiscordScheduledEventRequestEntityOneOf1(
        Box<models::CreateDiscordScheduledEventRequestEntityOneOf1>,
    ),
    CreateDiscordScheduledEventRequestEntityOneOf2(
        Box<models::CreateDiscordScheduledEventRequestEntityOneOf2>,
    ),
}

impl Default for CreateDiscordScheduledEventRequestEntity {
    fn default() -> Self {
        Self::CreateDiscordScheduledEventRequestEntityOneOf(Default::default())
    }
}
///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
    #[serde(rename = "external")]
    External,
    #[serde(rename = "voice")]
    Voice,
    #[serde(rename = "stage")]
    Stage,
}

impl Default for Type {
    fn default() -> Type {
        Self::External
    }
}
