messaging_api_line/models/get_joined_membership_users_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/// GetJoinedMembershipUsersResponse : List of users who have joined the membership
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct GetJoinedMembershipUsersResponse {
17 /// A list of user IDs who joined the membership. Users who have not agreed to the bot user agreement, are not following the bot, or are not active will be excluded. If there are no users in the membership, an empty list will be returned.
18 #[serde(rename = "userIds")]
19 pub user_ids: Vec<String>,
20 /// A continuation token to get next remaining membership user IDs. Returned only when there are remaining user IDs that weren't returned in the userIds property in the previous request. The continuation token expires in 24 hours (86,400 seconds).
21 #[serde(rename = "next", skip_serializing_if = "Option::is_none")]
22 pub next: Option<String>,
23}
24
25impl GetJoinedMembershipUsersResponse {
26 /// List of users who have joined the membership
27 pub fn new(user_ids: Vec<String>) -> GetJoinedMembershipUsersResponse {
28 GetJoinedMembershipUsersResponse {
29 user_ids,
30 next: None,
31 }
32 }
33}
34