messaging_api_line/models/
sticker_message.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct StickerMessage {
16    /// Type of message
17    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
18    pub r#type: Option<String>,
19    #[serde(rename = "quickReply", skip_serializing_if = "Option::is_none")]
20    pub quick_reply: Option<Box<models::QuickReply>>,
21    #[serde(rename = "sender", skip_serializing_if = "Option::is_none")]
22    pub sender: Option<Box<models::Sender>>,
23    #[serde(rename = "packageId")]
24    pub package_id: String,
25    #[serde(rename = "stickerId")]
26    pub sticker_id: String,
27    /// Quote token of the message you want to quote.
28    #[serde(rename = "quoteToken", skip_serializing_if = "Option::is_none")]
29    pub quote_token: Option<String>,
30}
31
32impl StickerMessage {
33    pub fn new(r#type: String, package_id: String, sticker_id: String) -> StickerMessage {
34        StickerMessage {
35            r#type: Some(r#type),
36            quick_reply: None,
37            sender: None,
38            package_id,
39            sticker_id,
40            quote_token: None,
41        }
42    }
43}