1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* 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
*/
/// Category : Channel category
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct Category {
/// Unique ID for this category
#[serde(rename = "id")]
pub id: String,
/// Title for this category
#[serde(rename = "title")]
pub title: String,
/// Channels in this category
#[serde(rename = "channels")]
pub channels: Vec<String>,
}
impl Category {
/// Channel category
pub fn new(id: String, title: String, channels: Vec<String>) -> Category {
Category {
id,
title,
channels,
}
}
}