revolt_api/models/
revolt_config.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 RevoltConfig {
16    /// Revolt API Version
17    #[serde(rename = "revolt")]
18    pub revolt: String,
19    #[serde(rename = "features")]
20    pub features: Box<crate::models::RevoltConfigFeatures>,
21    /// WebSocket URL
22    #[serde(rename = "ws")]
23    pub ws: String,
24    /// URL pointing to the client serving this node
25    #[serde(rename = "app")]
26    pub app: String,
27    /// Web Push VAPID public key
28    #[serde(rename = "vapid")]
29    pub vapid: String,
30    #[serde(rename = "build")]
31    pub build: Box<crate::models::RevoltConfigBuild>,
32}
33
34impl RevoltConfig {
35    pub fn new(revolt: String, features: crate::models::RevoltConfigFeatures, ws: String, app: String, vapid: String, build: crate::models::RevoltConfigBuild) -> RevoltConfig {
36        RevoltConfig {
37            revolt,
38            features: Box::new(features),
39            ws,
40            app,
41            vapid,
42            build: Box::new(build),
43        }
44    }
45}
46
47