module_line/models/
get_modules_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/// GetModulesResponse : List of bots to which the module is attached
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct GetModulesResponse {
17    /// Array of Bot list Item objects representing basic information about the bot.
18    #[serde(rename = "bots")]
19    pub bots: Vec<models::ModuleBot>,
20    /// Continuation token. Used to get the next array of basic bot information. This property is only returned if there are more unreturned results. 
21    #[serde(rename = "next", skip_serializing_if = "Option::is_none")]
22    pub next: Option<String>,
23}
24
25impl GetModulesResponse {
26    /// List of bots to which the module is attached
27    pub fn new(bots: Vec<models::ModuleBot>) -> GetModulesResponse {
28        GetModulesResponse {
29            bots,
30            next: None,
31        }
32    }
33}
34