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