messaging_api_line/models/
flex_separator.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 FlexSeparator {
16    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
17    pub r#type: Option<String>,
18    #[serde(rename = "margin", skip_serializing_if = "Option::is_none")]
19    pub margin: Option<String>,
20    #[serde(rename = "color", skip_serializing_if = "Option::is_none")]
21    pub color: Option<String>,
22}
23
24impl FlexSeparator {
25    pub fn new(r#type: String) -> FlexSeparator {
26        FlexSeparator {
27            r#type: Some(r#type),
28            margin: None,
29            color: None,
30        }
31    }
32}