module_attach_line/models/
attach_module_response.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/// AttachModuleResponse : Attach by operation of the module channel provider
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AttachModuleResponse {
17    /// User ID of the bot on the LINE Official Account.
18    #[serde(rename = "bot_id")]
19    pub bot_id: String,
20    /// Permissions (scope) granted by the LINE Official Account admin.
21    #[serde(rename = "scopes")]
22    pub scopes: Vec<String>,
23}
24
25impl AttachModuleResponse {
26    /// Attach by operation of the module channel provider
27    pub fn new(bot_id: String, scopes: Vec<String>) -> AttachModuleResponse {
28        AttachModuleResponse {
29            bot_id,
30            scopes,
31        }
32    }
33}
34