messaging_api_line/models/
show_loading_animation_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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ShowLoadingAnimationRequest {
16    /// User ID of the target user for whom the loading animation is to be displayed.
17    #[serde(rename = "chatId")]
18    pub chat_id: String,
19    /// The number of seconds to display the loading indicator. It must be a multiple of 5. The maximum value is 60 seconds. 
20    #[serde(rename = "loadingSeconds", skip_serializing_if = "Option::is_none")]
21    pub loading_seconds: Option<i32>,
22}
23
24impl ShowLoadingAnimationRequest {
25    pub fn new(chat_id: String) -> ShowLoadingAnimationRequest {
26        ShowLoadingAnimationRequest {
27            chat_id,
28            loading_seconds: None,
29        }
30    }
31}
32