revolt_api/models/
data_message_send_interactions.rs

1/*
2 * Revolt API
3 *
4 * Open source user-first chat platform.
5 *
6 * The version of the OpenAPI document: 0.6.5
7 * Contact: contact@revolt.chat
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// DataMessageSendInteractions : Information about how this message should be interacted with
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct DataMessageSendInteractions {
17    /// Reactions which should always appear and be distinct
18    #[serde(rename = "reactions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
19    pub reactions: Option<Option<Vec<String>>>,
20    /// Whether reactions should be restricted to the given list  Can only be set to true if reactions list is of at least length 1
21    #[serde(rename = "restrict_reactions", skip_serializing_if = "Option::is_none")]
22    pub restrict_reactions: Option<bool>,
23}
24
25impl DataMessageSendInteractions {
26    /// Information about how this message should be interacted with
27    pub fn new() -> DataMessageSendInteractions {
28        DataMessageSendInteractions {
29            reactions: None,
30            restrict_reactions: None,
31        }
32    }
33}
34
35