revolt_api/models/
system_message_one_of_8.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 SystemMessageOneOf8 {
16    #[serde(rename = "type")]
17    pub r#type: RHashType,
18    #[serde(rename = "by")]
19    pub by: String,
20}
21
22impl SystemMessageOneOf8 {
23    pub fn new(r#type: RHashType, by: String) -> SystemMessageOneOf8 {
24        SystemMessageOneOf8 {
25            r#type,
26            by,
27        }
28    }
29}
30
31/// 
32#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
33pub enum RHashType {
34    #[serde(rename = "channel_description_changed")]
35    ChannelDescriptionChanged,
36}
37
38impl Default for RHashType {
39    fn default() -> RHashType {
40        Self::ChannelDescriptionChanged
41    }
42}
43