messaging_api_line/models/
message_imagemap_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 MessageImagemapAction {
16    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
17    pub r#type: Option<String>,
18    #[serde(rename = "area")]
19    pub area: Box<models::ImagemapArea>,
20    #[serde(rename = "text")]
21    pub text: String,
22    #[serde(rename = "label", skip_serializing_if = "Option::is_none")]
23    pub label: Option<String>,
24}
25
26impl MessageImagemapAction {
27    pub fn new(r#type: String, area: models::ImagemapArea, text: String) -> MessageImagemapAction {
28        MessageImagemapAction {
29            r#type: Some(r#type),
30            area: Box::new(area),
31            text,
32            label: None,
33        }
34    }
35}