/*
 * 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 GetDiscordSettings200ResponseAccount {
    #[serde(rename = "_id", skip_serializing_if = "Option::is_none")]
    pub _id: Option<String>,
    #[serde(rename = "platform", skip_serializing_if = "Option::is_none")]
    pub platform: Option<String>,
    /// Channel name
    #[serde(rename = "username", skip_serializing_if = "Option::is_none")]
    pub username: Option<String>,
    /// Guild - #channel display name
    #[serde(rename = "displayName", skip_serializing_if = "Option::is_none")]
    pub display_name: Option<String>,
    /// Guild icon URL
    #[serde(rename = "profilePicture", skip_serializing_if = "Option::is_none")]
    pub profile_picture: Option<String>,
    /// Connected channel snowflake ID
    #[serde(rename = "channelId", skip_serializing_if = "Option::is_none")]
    pub channel_id: Option<String>,
    /// Channel name
    #[serde(rename = "channelName", skip_serializing_if = "Option::is_none")]
    pub channel_name: Option<String>,
    /// Channel type (0 = text, 5 = announcement, 15 = forum)
    #[serde(rename = "channelType", skip_serializing_if = "Option::is_none")]
    pub channel_type: Option<String>,
    /// Guild (server) snowflake ID
    #[serde(rename = "guildId", skip_serializing_if = "Option::is_none")]
    pub guild_id: Option<String>,
    /// Custom webhook display name (null = default \"Zernio\")
    #[serde(
        rename = "webhookUsername",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub webhook_username: Option<Option<String>>,
    /// Custom webhook avatar URL (null = default bot avatar)
    #[serde(
        rename = "webhookAvatarUrl",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub webhook_avatar_url: Option<Option<String>>,
}

impl GetDiscordSettings200ResponseAccount {
    pub fn new() -> GetDiscordSettings200ResponseAccount {
        GetDiscordSettings200ResponseAccount {
            _id: None,
            platform: None,
            username: None,
            display_name: None,
            profile_picture: None,
            channel_id: None,
            channel_name: None,
            channel_type: None,
            guild_id: None,
            webhook_username: None,
            webhook_avatar_url: None,
        }
    }
}
