/*
 * 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 DiscordPlatformDataEmbedsInner {
    /// Embed title (max 256 chars)
    #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
    pub title: Option<String>,
    /// Embed body text (max 4,096 chars)
    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    /// URL the title links to
    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
    /// Embed accent color as decimal integer (e.g. 5814783 for blue). Convert hex to decimal.
    #[serde(rename = "color", skip_serializing_if = "Option::is_none")]
    pub color: Option<i32>,
    #[serde(rename = "image", skip_serializing_if = "Option::is_none")]
    pub image: Option<Box<models::DiscordPlatformDataEmbedsInnerImage>>,
    #[serde(rename = "thumbnail", skip_serializing_if = "Option::is_none")]
    pub thumbnail: Option<Box<models::DiscordPlatformDataEmbedsInnerImage>>,
    #[serde(rename = "footer", skip_serializing_if = "Option::is_none")]
    pub footer: Option<Box<models::DiscordPlatformDataEmbedsInnerFooter>>,
    #[serde(rename = "author", skip_serializing_if = "Option::is_none")]
    pub author: Option<Box<models::DiscordPlatformDataEmbedsInnerAuthor>>,
    /// Up to 25 fields per embed
    #[serde(rename = "fields", skip_serializing_if = "Option::is_none")]
    pub fields: Option<Vec<models::DiscordPlatformDataEmbedsInnerFieldsInner>>,
}

impl DiscordPlatformDataEmbedsInner {
    pub fn new() -> DiscordPlatformDataEmbedsInner {
        DiscordPlatformDataEmbedsInner {
            title: None,
            description: None,
            url: None,
            color: None,
            image: None,
            thumbnail: None,
            footer: None,
            author: None,
            fields: None,
        }
    }
}
