1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/*
* Copyright (C) 2016 LINE Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* LINE Messaging API
*
* This document describes LINE Messaging API.
*
* The version of the OpenAPI document: 0.0.1
*
* Generated by: https://openapi-generator.tech
*/
use crate::line_manage_audience::models;
use serde::{Deserialize, Serialize};
/// AudienceGroup : Audience group
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AudienceGroup {
/// The audience ID.
#[serde(rename = "audienceGroupId", skip_serializing_if = "Option::is_none")]
pub audience_group_id: Option<i64>,
#[serde(rename = "type", skip_serializing_if = "Option::is_none")]
pub r#type: Option<models::AudienceGroupType>,
/// The audience's name.
#[serde(rename = "description", skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "status", skip_serializing_if = "Option::is_none")]
pub status: Option<models::AudienceGroupStatus>,
#[serde(rename = "failedType", skip_serializing_if = "Option::is_none")]
pub failed_type: Option<models::AudienceGroupFailedType>,
/// The number of users included in the audience.
#[serde(rename = "audienceCount", skip_serializing_if = "Option::is_none")]
pub audience_count: Option<i64>,
/// When the audience was created (in UNIX time).
#[serde(rename = "created", skip_serializing_if = "Option::is_none")]
pub created: Option<i64>,
/// The request ID that was specified when the audience was created. This is only included when `audienceGroup.type` is CLICK or IMP.
#[serde(rename = "requestId", skip_serializing_if = "Option::is_none")]
pub request_id: Option<String>,
/// The URL that was specified when the audience was created. This is only included when `audienceGroup.type` is CLICK and link URL is specified.
#[serde(rename = "clickUrl", skip_serializing_if = "Option::is_none")]
pub click_url: Option<String>,
/// The value indicating the type of account to be sent, as specified when creating the audience for uploading user IDs.
#[serde(rename = "isIfaAudience", skip_serializing_if = "Option::is_none")]
pub is_ifa_audience: Option<bool>,
#[serde(rename = "permission", skip_serializing_if = "Option::is_none")]
pub permission: Option<models::AudienceGroupPermission>,
#[serde(rename = "createRoute", skip_serializing_if = "Option::is_none")]
pub create_route: Option<models::AudienceGroupCreateRoute>,
}
impl AudienceGroup {
/// Audience group
pub fn new() -> AudienceGroup {
AudienceGroup {
audience_group_id: None,
r#type: None,
description: None,
status: None,
failed_type: None,
audience_count: None,
created: None,
request_id: None,
click_url: None,
is_ifa_audience: None,
permission: None,
create_route: None,
}
}
}