messaging_api_line/models/
quick_reply_item.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 QuickReplyItem {
16    /// URL of the icon that is displayed at the beginning of the button
17    #[serde(rename = "imageUrl", skip_serializing_if = "Option::is_none")]
18    pub image_url: Option<String>,
19    #[serde(rename = "action", skip_serializing_if = "Option::is_none")]
20    pub action: Option<Box<models::Action>>,
21    /// `action`
22    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
23    pub r#type: Option<String>,
24}
25
26impl QuickReplyItem {
27    pub fn new() -> QuickReplyItem {
28        QuickReplyItem {
29            image_url: None,
30            action: None,
31            r#type: None,
32        }
33    }
34}
35