messaging_api_line/models/rich_menu_batch_unlink_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
14/// RichMenuBatchUnlinkOperation : Unlink the rich menu for all users linked to the rich menu specified in the `from` property.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct RichMenuBatchUnlinkOperation {
17 /// The type of operation to the rich menu linked to the user. One of link, unlink, or unlinkAll.
18 #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
19 pub r#type: Option<String>,
20 #[serde(rename = "from")]
21 pub from: String,
22}
23
24impl RichMenuBatchUnlinkOperation {
25 /// Unlink the rich menu for all users linked to the rich menu specified in the `from` property.
26 pub fn new(r#type: String, from: String) -> RichMenuBatchUnlinkOperation {
27 RichMenuBatchUnlinkOperation {
28 r#type: Some(r#type),
29 from,
30 }
31 }
32}