line_messaging_api/models/
flex_box_linear_gradient.rs

1/*
2* Copyright (C) 2016 LINE Corp.
3*
4* Licensed under the Apache License, Version 2.0 (the "License");
5* you may not use this file except in compliance with the License.
6* You may obtain a copy of the License at
7*
8*     http://www.apache.org/licenses/LICENSE-2.0
9*
10* Unless required by applicable law or agreed to in writing, software
11* distributed under the License is distributed on an "AS IS" BASIS,
12* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13* See the License for the specific language governing permissions and
14* limitations under the License.
15*/
16
17/*
18 * LINE Messaging API
19 *
20 * This document describes LINE Messaging API.
21 *
22 * The version of the OpenAPI document: 0.0.3
23 *
24 * Generated by: https://openapi-generator.tech
25 */
26
27#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
28pub struct FlexBoxLinearGradient {
29    #[serde(rename = "type")]
30    pub r#type: String,
31    #[serde(rename = "angle", skip_serializing_if = "Option::is_none")]
32    pub angle: Option<String>,
33    #[serde(rename = "startColor", skip_serializing_if = "Option::is_none")]
34    pub start_color: Option<String>,
35    #[serde(rename = "endColor", skip_serializing_if = "Option::is_none")]
36    pub end_color: Option<String>,
37    #[serde(rename = "centerColor", skip_serializing_if = "Option::is_none")]
38    pub center_color: Option<String>,
39    #[serde(rename = "centerPosition", skip_serializing_if = "Option::is_none")]
40    pub center_position: Option<String>,
41}
42
43impl FlexBoxLinearGradient {
44    pub fn new(r#type: String) -> FlexBoxLinearGradient {
45        FlexBoxLinearGradient {
46            r#type,
47            angle: None,
48            start_color: None,
49            end_color: None,
50            center_color: None,
51            center_position: None,
52        }
53    }
54}