messaging_api_line/models/
emoji_substitution_object.rs

1/*
2 * LINE Messaging API
3 *
4 * This document describes LINE Messaging API.
5 *
6 * The version of the OpenAPI document: 0.0.1
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// EmojiSubstitutionObject : An object representing a emoji substitution.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct EmojiSubstitutionObject {
17    /// Type of substitution object
18    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
19    pub r#type: Option<String>,
20    #[serde(rename = "productId")]
21    pub product_id: String,
22    #[serde(rename = "emojiId")]
23    pub emoji_id: String,
24}
25
26impl EmojiSubstitutionObject {
27    /// An object representing a emoji substitution.
28    pub fn new(r#type: String, product_id: String, emoji_id: String) -> EmojiSubstitutionObject {
29        EmojiSubstitutionObject {
30            r#type: Some(r#type),
31            product_id,
32            emoji_id,
33        }
34    }
35}