webhook-line 1.0.1

Webhook event definition of the LINE Messaging API
Documentation
/*
 * Webhook Type Definition
 *
 * Webhook event definition of the LINE Messaging API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AttachedModuleContent {
    /// Type
    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
    pub r#type: Option<String>,
    /// User ID of the bot on the attached LINE Official Account
    #[serde(rename = "botId")]
    pub bot_id: String,
    /// An array of strings indicating the scope permitted by the admin of the LINE Official Account.
    #[serde(rename = "scopes")]
    pub scopes: Vec<String>,
}

impl AttachedModuleContent {
    pub fn new(r#type: String, bot_id: String, scopes: Vec<String>) -> AttachedModuleContent {
        AttachedModuleContent {
            r#type: Some(r#type),
            bot_id,
            scopes,
        }
    }
}