messaging_api_line/models/
rich_menu_bounds.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/// RichMenuBounds : Rich menu bounds
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct RichMenuBounds {
17    /// Horizontal position relative to the top-left corner of the area.
18    #[serde(rename = "x", skip_serializing_if = "Option::is_none")]
19    pub x: Option<i64>,
20    /// Vertical position relative to the top-left corner of the area.
21    #[serde(rename = "y", skip_serializing_if = "Option::is_none")]
22    pub y: Option<i64>,
23    /// Width of the area.
24    #[serde(rename = "width", skip_serializing_if = "Option::is_none")]
25    pub width: Option<i64>,
26    /// Height of the area.
27    #[serde(rename = "height", skip_serializing_if = "Option::is_none")]
28    pub height: Option<i64>,
29}
30
31impl RichMenuBounds {
32    /// Rich menu bounds
33    pub fn new() -> RichMenuBounds {
34        RichMenuBounds {
35            x: None,
36            y: None,
37            width: None,
38            height: None,
39        }
40    }
41}
42