messaging_api_line/models/
rich_menu_batch_operation.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
14use super::{
15    RichMenuBatchLinkOperation, RichMenuBatchUnlinkAllOperation, RichMenuBatchUnlinkOperation,
16};
17
18/// RichMenuBatchOperation : Rich menu operation object represents the batch operation to the rich menu linked to the user.
19#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
20#[serde(tag = "type")]
21pub enum RichMenuBatchOperation {
22    #[serde(rename = "link")]
23    RichMenuBatchLinkOperation(RichMenuBatchLinkOperation),
24    #[serde(rename = "unlink")]
25    RichMenuBatchUnlinkOperation(RichMenuBatchUnlinkOperation),
26    #[serde(rename = "unlinkAll")]
27    RichMenuBatchUnlinkAllOperation(RichMenuBatchUnlinkAllOperation),
28}
29
30impl Default for RichMenuBatchOperation {
31    fn default() -> Self {
32        Self::RichMenuBatchLinkOperation(RichMenuBatchLinkOperation::default())
33    }
34}