messaging_api_line/models/
message_action.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 MessageAction {
16    /// Type of action
17    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
18    pub r#type: Option<String>,
19    /// Label for the action.
20    #[serde(rename = "label", skip_serializing_if = "Option::is_none")]
21    pub label: Option<String>,
22    #[serde(rename = "text", skip_serializing_if = "Option::is_none")]
23    pub text: Option<String>,
24}
25
26impl MessageAction {
27    pub fn new() -> MessageAction {
28        MessageAction {
29            r#type: None,
30            label: None,
31            text: None,
32        }
33    }
34}
35