module_line/models/acquire_chat_control_request.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/// AcquireChatControlRequest : Request entity of the Acquire Control API
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AcquireChatControlRequest {
17 /// `True`: After the time limit (ttl) has passed, the initiative (Chat Control) will return to the Primary Channel. (Default) `False`: There's no time limit and the initiative (Chat Control) doesn't change over time.
18 #[serde(rename = "expired", skip_serializing_if = "Option::is_none")]
19 pub expired: Option<bool>,
20 /// The time it takes for initiative (Chat Control) to return to the Primary Channel (the time that the module channel stays on the Active Channel). The value is specified in seconds. The maximum value is one year (3600 * 24 * 365). The default value is 3600 (1 hour). * Ignored if the value of expired is false.
21 #[serde(rename = "ttl", skip_serializing_if = "Option::is_none")]
22 pub ttl: Option<i32>,
23}
24
25impl AcquireChatControlRequest {
26 /// Request entity of the Acquire Control API
27 pub fn new() -> AcquireChatControlRequest {
28 AcquireChatControlRequest {
29 expired: None,
30 ttl: None,
31 }
32 }
33}
34