messaging_api_line/models/
rich_menu_batch_progress_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 RichMenuBatchProgressResponse {
16    #[serde(rename = "phase")]
17    pub phase: models::RichMenuBatchProgressPhase,
18    /// The accepted time in milliseconds of the request of batch control the rich menu.  Format: ISO 8601 (e.g. 2023-06-08T10:15:30.121Z) Timezone: UTC 
19    #[serde(rename = "acceptedTime")]
20    pub accepted_time: String,
21    /// The completed time in milliseconds of rich menu batch control. Returned when the phase property is succeeded or failed.  Format: ISO 8601 (e.g. 2023-06-08T10:15:30.121Z) Timezone: UTC 
22    #[serde(rename = "completedTime", skip_serializing_if = "Option::is_none")]
23    pub completed_time: Option<String>,
24}
25
26impl RichMenuBatchProgressResponse {
27    pub fn new(phase: models::RichMenuBatchProgressPhase, accepted_time: String) -> RichMenuBatchProgressResponse {
28        RichMenuBatchProgressResponse {
29            phase,
30            accepted_time,
31            completed_time: None,
32        }
33    }
34}
35