/*
* Revolt API
*
* Open source user-first chat platform.
*
* The version of the OpenAPI document: 0.6.5
* Contact: contact@revolt.chat
* Generated by: https://openapi-generator.tech
*/
/// MessageInteractions : Information about how this message should be interacted with
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct MessageInteractions {
/// Reactions which should always appear and be distinct
#[serde(rename = "reactions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub reactions: Option<Option<Vec<String>>>,
/// Whether reactions should be restricted to the given list Can only be set to true if reactions list is of at least length 1
#[serde(rename = "restrict_reactions", skip_serializing_if = "Option::is_none")]
pub restrict_reactions: Option<bool>,
}
impl MessageInteractions {
/// Information about how this message should be interacted with
pub fn new() -> MessageInteractions {
MessageInteractions {
reactions: None,
restrict_reactions: None,
}
}
}