line-bot-sdk-rust 3.0.0

LINE Messaging API SDK for Rust
Documentation
/*
* Copyright (C) 2016 LINE Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/*
 * LIFF server API
 *
 * LIFF Server API.
 *
 * The version of the OpenAPI document: 1.0.0
 *
 * Generated by: https://openapi-generator.tech
 */

use crate::line_liff::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct LiffApp {
    /// LIFF app ID
    #[serde(rename = "liffId", skip_serializing_if = "Option::is_none")]
    pub liff_id: Option<String>,
    #[serde(rename = "view", skip_serializing_if = "Option::is_none")]
    pub view: Option<Box<models::LiffView>>,
    /// Name of the LIFF app
    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    #[serde(rename = "features", skip_serializing_if = "Option::is_none")]
    pub features: Option<Box<models::LiffFeatures>>,
    /// How additional information in LIFF URLs is handled. concat is returned.
    #[serde(
        rename = "permanentLinkPattern",
        skip_serializing_if = "Option::is_none"
    )]
    pub permanent_link_pattern: Option<String>,
    #[serde(rename = "scope", skip_serializing_if = "Option::is_none")]
    pub scope: Option<Vec<models::LiffScope>>,
    #[serde(rename = "botPrompt", skip_serializing_if = "Option::is_none")]
    pub bot_prompt: Option<models::LiffBotPrompt>,
}

impl LiffApp {
    pub fn new() -> LiffApp {
        LiffApp {
            liff_id: None,
            view: None,
            description: None,
            features: None,
            permanent_link_pattern: None,
            scope: None,
            bot_prompt: None,
        }
    }
}