messaging_api_line/models/
imagemap_area.rs1use 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