revolt_api 0.5.5

Rust typings for the Revolt API.
Documentation
/*
 * Revolt API
 *
 * Open source user-first chat platform.
 *
 * The version of the OpenAPI document: 0.5.5
 * Contact: contact@revolt.chat
 * Generated by: https://openapi-generator.tech
 */




#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct DataMessageSend {
    /// Unique token to prevent duplicate message sending  **This is deprecated and replaced by `Idempotency-Key`!**
    #[serde(rename = "nonce", skip_serializing_if = "Option::is_none")]
    pub nonce: Option<String>,
    /// Message content to send
    #[serde(rename = "content", skip_serializing_if = "Option::is_none")]
    pub content: Option<String>,
    /// Attachments to include in message
    #[serde(rename = "attachments", skip_serializing_if = "Option::is_none")]
    pub attachments: Option<Vec<String>>,
    /// Messages to reply to
    #[serde(rename = "replies", skip_serializing_if = "Option::is_none")]
    pub replies: Option<Vec<crate::models::Reply>>,
    /// Embeds to include in message  Text embed content contributes to the content length cap
    #[serde(rename = "embeds", skip_serializing_if = "Option::is_none")]
    pub embeds: Option<Vec<crate::models::SendableEmbed>>,
    #[serde(rename = "masquerade", skip_serializing_if = "Option::is_none")]
    pub masquerade: Option<Box<crate::models::DataMessageSendMasquerade>>,
    #[serde(rename = "interactions", skip_serializing_if = "Option::is_none")]
    pub interactions: Option<Box<crate::models::DataMessageSendInteractions>>,
}

impl DataMessageSend {
    pub fn new() -> DataMessageSend {
        DataMessageSend {
            nonce: None,
            content: None,
            attachments: None,
            replies: None,
            embeds: None,
            masquerade: None,
            interactions: None,
        }
    }
}