messaging_api_line/models/
flex_icon_size.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/// FlexIconSize : You can set the width of an Flex icon component with the `size` property, in pixels, as a percentage, or with a keyword. FlexIconSize just provides only keywords. 
15/// You can set the width of an Flex icon component with the `size` property, in pixels, as a percentage, or with a keyword. FlexIconSize just provides only keywords. 
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum FlexIconSize {
18    #[serde(rename = "xxs")]
19    Xxs,
20    #[serde(rename = "xs")]
21    Xs,
22    #[serde(rename = "sm")]
23    Sm,
24    #[serde(rename = "md")]
25    Md,
26    #[serde(rename = "lg")]
27    Lg,
28    #[serde(rename = "xl")]
29    Xl,
30    #[serde(rename = "xxl")]
31    Xxl,
32    #[serde(rename = "3xl")]
33    Variant3xl,
34    #[serde(rename = "4xl")]
35    Variant4xl,
36    #[serde(rename = "5xl")]
37    Variant5xl,
38
39}
40
41impl std::fmt::Display for FlexIconSize {
42    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
43        match self {
44            Self::Xxs => write!(f, "xxs"),
45            Self::Xs => write!(f, "xs"),
46            Self::Sm => write!(f, "sm"),
47            Self::Md => write!(f, "md"),
48            Self::Lg => write!(f, "lg"),
49            Self::Xl => write!(f, "xl"),
50            Self::Xxl => write!(f, "xxl"),
51            Self::Variant3xl => write!(f, "3xl"),
52            Self::Variant4xl => write!(f, "4xl"),
53            Self::Variant5xl => write!(f, "5xl"),
54        }
55    }
56}
57
58impl Default for FlexIconSize {
59    fn default() -> FlexIconSize {
60        Self::Xxs
61    }
62}
63