messaging_api_line/models/rich_menu_batch_progress_phase.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/// RichMenuBatchProgressPhase : The current status. One of: `ongoing`: Rich menu batch control is in progress. `succeeded`: Rich menu batch control is complete. `failed`: Rich menu batch control failed. This means that the rich menu for one or more users couldn't be controlled. There may also be users whose operations have been successfully completed.
15/// The current status. One of: `ongoing`: Rich menu batch control is in progress. `succeeded`: Rich menu batch control is complete. `failed`: Rich menu batch control failed. This means that the rich menu for one or more users couldn't be controlled. There may also be users whose operations have been successfully completed.
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum RichMenuBatchProgressPhase {
18 #[serde(rename = "ongoing")]
19 Ongoing,
20 #[serde(rename = "succeeded")]
21 Succeeded,
22 #[serde(rename = "failed")]
23 Failed,
24
25}
26
27impl std::fmt::Display for RichMenuBatchProgressPhase {
28 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
29 match self {
30 Self::Ongoing => write!(f, "ongoing"),
31 Self::Succeeded => write!(f, "succeeded"),
32 Self::Failed => write!(f, "failed"),
33 }
34 }
35}
36
37impl Default for RichMenuBatchProgressPhase {
38 fn default() -> RichMenuBatchProgressPhase {
39 Self::Ongoing
40 }
41}
42