messaging_api_line/models/
template_image_aspect_ratio.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/// TemplateImageAspectRatio : Aspect ratio of the image. This is only for the `imageAspectRatio` in ButtonsTemplate. Specify one of the following values:  `rectangle`: 1.51:1 `square`: 1:1 
15/// Aspect ratio of the image. This is only for the `imageAspectRatio` in ButtonsTemplate. Specify one of the following values:  `rectangle`: 1.51:1 `square`: 1:1 
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum TemplateImageAspectRatio {
18    #[serde(rename = "rectangle")]
19    Rectangle,
20    #[serde(rename = "square")]
21    Square,
22
23}
24
25impl std::fmt::Display for TemplateImageAspectRatio {
26    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
27        match self {
28            Self::Rectangle => write!(f, "rectangle"),
29            Self::Square => write!(f, "square"),
30        }
31    }
32}
33
34impl Default for TemplateImageAspectRatio {
35    fn default() -> TemplateImageAspectRatio {
36        Self::Rectangle
37    }
38}
39