mattermost_rust_client/models/top_reaction.rs
1/*
2 * Mattermost API Reference
3 *
4 * There is also a work-in-progress [Postman API reference](https://documenter.getpostman.com/view/4508214/RW8FERUn).
5 *
6 * The version of the OpenAPI document: 4.0.0
7 * Contact: feedback@mattermost.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct TopReaction {
16 /// The name of the emoji used for this reaction.
17 #[serde(rename = "emoji_name", skip_serializing_if = "Option::is_none")]
18 pub emoji_name: Option<String>,
19 /// The number of the times this emoji has been used.
20 #[serde(rename = "count", skip_serializing_if = "Option::is_none")]
21 pub count: Option<i64>,
22}
23
24impl TopReaction {
25 pub fn new() -> TopReaction {
26 TopReaction {
27 emoji_name: None,
28 count: None,
29 }
30 }
31}
32
33