messaging_api_line/models/members_ids_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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct MembersIdsResponse {
16 /// List of user IDs of members in the group chat. Only users of LINE for iOS and LINE for Android are included in `memberIds`.
17 #[serde(rename = "memberIds")]
18 pub member_ids: Vec<String>,
19 /// A continuation token to get the next array of user IDs of the members in the group chat. Returned only when there are remaining user IDs that were not returned in `memberIds` in the original request.
20 #[serde(rename = "next", skip_serializing_if = "Option::is_none")]
21 pub next: Option<String>,
22}
23
24impl MembersIdsResponse {
25 pub fn new(member_ids: Vec<String>) -> MembersIdsResponse {
26 MembersIdsResponse {
27 member_ids,
28 next: None,
29 }
30 }
31}
32