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
40
41
42
43
44
45
46
47
48
49
50
/*
* 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
*/
/// Emoji : Representation of an Emoji on Revolt
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct Emoji {
/// Unique Id
#[serde(rename = "_id")]
pub _id: String,
#[serde(rename = "parent")]
pub parent: Box<crate::models::EmojiParent>,
/// Uploader user id
#[serde(rename = "creator_id")]
pub creator_id: String,
/// Emoji name
#[serde(rename = "name")]
pub name: String,
/// Whether the emoji is animated
#[serde(rename = "animated", skip_serializing_if = "Option::is_none")]
pub animated: Option<bool>,
/// Whether the emoji is marked as nsfw
#[serde(rename = "nsfw", skip_serializing_if = "Option::is_none")]
pub nsfw: Option<bool>,
}
impl Emoji {
/// Representation of an Emoji on Revolt
pub fn new(_id: String, parent: crate::models::EmojiParent, creator_id: String, name: String) -> Emoji {
Emoji {
_id,
parent: Box::new(parent),
creator_id,
name,
animated: None,
nsfw: None,
}
}
}