/*
 * 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, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CreateDiscordScheduledEventRequestEntityOneOf {
    #[serde(rename = "type")]
    pub r#type: Type,
    /// Where the event takes place (e.g. \"Zoom link\", \"123 Main St\")
    #[serde(rename = "location")]
    pub location: String,
    #[serde(rename = "endsAt")]
    pub ends_at: String,
}

impl CreateDiscordScheduledEventRequestEntityOneOf {
    pub fn new(
        r#type: Type,
        location: String,
        ends_at: String,
    ) -> CreateDiscordScheduledEventRequestEntityOneOf {
        CreateDiscordScheduledEventRequestEntityOneOf {
            r#type,
            location,
            ends_at,
        }
    }
}
///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
    #[serde(rename = "external")]
    External,
}

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