use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct Emoji {
pub id: String,
#[serde(rename = "type")]
pub emoji_type: i32,
}
impl Emoji {
pub fn new(id: impl Into<String>, emoji_type: i32) -> Self {
Self {
id: id.into(),
emoji_type,
}
}
pub fn with_type(id: impl Into<String>, emoji_type: i32) -> Self {
Self::new(id, emoji_type)
}
}