webhook_line/models/chat_control.rs
1/*
2 * Webhook Type Definition
3 *
4 * Webhook event definition of the LINE Messaging API
5 *
6 * The version of the OpenAPI document: 1.0.0
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 ChatControl {
16 #[serde(rename = "expireAt")]
17 pub expire_at: i64,
18}
19
20impl ChatControl {
21 pub fn new(expire_at: i64) -> ChatControl {
22 ChatControl {
23 expire_at,
24 }
25 }
26}
27