module-attach-line 0.0.2

This document describes LINE Messaging API.
Documentation
/*
 * LINE Messaging API
 *
 * This document describes LINE Messaging API.
 *
 * The version of the OpenAPI document: 0.0.1
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// AttachModuleResponse : Attach by operation of the module channel provider
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AttachModuleResponse {
    /// User ID of the bot on the LINE Official Account.
    #[serde(rename = "bot_id")]
    pub bot_id: String,
    /// Permissions (scope) granted by the LINE Official Account admin.
    #[serde(rename = "scopes")]
    pub scopes: Vec<String>,
}

impl AttachModuleResponse {
    /// Attach by operation of the module channel provider
    pub fn new(bot_id: String, scopes: Vec<String>) -> AttachModuleResponse {
        AttachModuleResponse {
            bot_id,
            scopes,
        }
    }
}