#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct Message {
#[serde(rename = "_id")]
pub _id: String,
#[serde(rename = "nonce", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub nonce: Option<Option<String>>,
#[serde(rename = "channel")]
pub channel: String,
#[serde(rename = "author")]
pub author: String,
#[serde(rename = "webhook", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub webhook: Option<Option<Box<crate::models::MessageWebhook>>>,
#[serde(rename = "content", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub content: Option<Option<String>>,
#[serde(rename = "system", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub system: Option<Option<Box<crate::models::MessageSystem>>>,
#[serde(rename = "attachments", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub attachments: Option<Option<Vec<crate::models::File>>>,
#[serde(rename = "edited", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub edited: Option<Option<String>>,
#[serde(rename = "embeds", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub embeds: Option<Option<Vec<crate::models::Embed>>>,
#[serde(rename = "mentions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub mentions: Option<Option<Vec<String>>>,
#[serde(rename = "replies", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub replies: Option<Option<Vec<String>>>,
#[serde(rename = "reactions", skip_serializing_if = "Option::is_none")]
pub reactions: Option<::std::collections::HashMap<String, Vec<String>>>,
#[serde(rename = "interactions", skip_serializing_if = "Option::is_none")]
pub interactions: Option<Box<crate::models::MessageInteractions>>,
#[serde(rename = "masquerade", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub masquerade: Option<Option<Box<crate::models::MessageMasquerade>>>,
}
impl Message {
pub fn new(_id: String, channel: String, author: String) -> Message {
Message {
_id,
nonce: None,
channel,
author,
webhook: None,
content: None,
system: None,
attachments: None,
edited: None,
embeds: None,
mentions: None,
replies: None,
reactions: None,
interactions: None,
masquerade: None,
}
}
}