/*
 * 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};

/// ListDiscordPinnedMessages200ResponseDataInner : Raw Discord Message object — see DiscordPlatformData for embed/attachment shapes.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ListDiscordPinnedMessages200ResponseDataInner {
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    #[serde(rename = "channel_id", skip_serializing_if = "Option::is_none")]
    pub channel_id: Option<String>,
    #[serde(rename = "content", skip_serializing_if = "Option::is_none")]
    pub content: Option<String>,
    #[serde(rename = "timestamp", skip_serializing_if = "Option::is_none")]
    pub timestamp: Option<String>,
    #[serde(rename = "author", skip_serializing_if = "Option::is_none")]
    pub author: Option<serde_json::Value>,
    #[serde(rename = "attachments", skip_serializing_if = "Option::is_none")]
    pub attachments: Option<Vec<serde_json::Value>>,
    #[serde(rename = "embeds", skip_serializing_if = "Option::is_none")]
    pub embeds: Option<Vec<serde_json::Value>>,
}

impl ListDiscordPinnedMessages200ResponseDataInner {
    /// Raw Discord Message object — see DiscordPlatformData for embed/attachment shapes.
    pub fn new() -> ListDiscordPinnedMessages200ResponseDataInner {
        ListDiscordPinnedMessages200ResponseDataInner {
            id: None,
            channel_id: None,
            content: None,
            timestamp: None,
            author: None,
            attachments: None,
            embeds: None,
        }
    }
}
