messaging_api_line/models/
get_followers_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 GetFollowersResponse {
16    /// An array of strings indicating user IDs of users that have added the LINE Official Account as a friend. Only users of LINE for iOS and LINE for Android are included in `userIds`. 
17    #[serde(rename = "userIds")]
18    pub user_ids: Vec<String>,
19    /// A continuation token to get the next array of user IDs. Returned only when there are remaining user IDs that weren't returned in `userIds` in the original request. The number of user IDs in the `userIds` element doesn't have to reach the maximum number specified by `limit` for the `next` property to be included in the response.  
20    #[serde(rename = "next", skip_serializing_if = "Option::is_none")]
21    pub next: Option<String>,
22}
23
24impl GetFollowersResponse {
25    pub fn new(user_ids: Vec<String>) -> GetFollowersResponse {
26        GetFollowersResponse {
27            user_ids,
28            next: None,
29        }
30    }
31}
32