messaging_api_line/models/
imagemap_area.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 ImagemapArea {
16    #[serde(rename = "x")]
17    pub x: i32,
18    #[serde(rename = "y")]
19    pub y: i32,
20    #[serde(rename = "width")]
21    pub width: i32,
22    #[serde(rename = "height")]
23    pub height: i32,
24}
25
26impl ImagemapArea {
27    pub fn new(x: i32, y: i32, width: i32, height: i32) -> ImagemapArea {
28        ImagemapArea {
29            x,
30            y,
31            width,
32            height,
33        }
34    }
35}
36