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