revolt_api/models/
revolt_config.rs1#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct RevoltConfig {
16 #[serde(rename = "revolt")]
18 pub revolt: String,
19 #[serde(rename = "features")]
20 pub features: Box<crate::models::RevoltConfigFeatures>,
21 #[serde(rename = "ws")]
23 pub ws: String,
24 #[serde(rename = "app")]
26 pub app: String,
27 #[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