revolt_api/models/
data_edit_bot.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
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct DataEditBot {
16    /// Bot username
17    #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
18    pub name: Option<Option<String>>,
19    /// Whether the bot can be added by anyone
20    #[serde(rename = "public", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
21    pub public: Option<Option<bool>>,
22    /// Whether analytics should be gathered for this bot  Must be enabled in order to show up on [Revolt Discover](https://rvlt.gg).
23    #[serde(rename = "analytics", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
24    pub analytics: Option<Option<bool>>,
25    /// Interactions URL
26    #[serde(rename = "interactions_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
27    pub interactions_url: Option<Option<String>>,
28    /// Fields to remove from bot object
29    #[serde(rename = "remove", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
30    pub remove: Option<Option<Vec<crate::models::FieldsBot>>>,
31}
32
33impl DataEditBot {
34    pub fn new() -> DataEditBot {
35        DataEditBot {
36            name: None,
37            public: None,
38            analytics: None,
39            interactions_url: None,
40            remove: None,
41        }
42    }
43}
44
45