messaging_api_line/models/
flex_box_border_width.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/// FlexBoxBorderWidth : Width of box border. This is only for `borderWidth` in FlexBox. A value of none means that borders are not rendered; the other values are listed in order of increasing width. 
15/// Width of box border. This is only for `borderWidth` in FlexBox. A value of none means that borders are not rendered; the other values are listed in order of increasing width. 
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum FlexBoxBorderWidth {
18    #[serde(rename = "none")]
19    None,
20    #[serde(rename = "light")]
21    Light,
22    #[serde(rename = "normal")]
23    Normal,
24    #[serde(rename = "medium")]
25    Medium,
26    #[serde(rename = "semi-bold")]
27    SemiBold,
28    #[serde(rename = "bold")]
29    Bold,
30
31}
32
33impl std::fmt::Display for FlexBoxBorderWidth {
34    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
35        match self {
36            Self::None => write!(f, "none"),
37            Self::Light => write!(f, "light"),
38            Self::Normal => write!(f, "normal"),
39            Self::Medium => write!(f, "medium"),
40            Self::SemiBold => write!(f, "semi-bold"),
41            Self::Bold => write!(f, "bold"),
42        }
43    }
44}
45
46impl Default for FlexBoxBorderWidth {
47    fn default() -> FlexBoxBorderWidth {
48        Self::None
49    }
50}
51