messaging_api_line/models/
rich_menu_batch_unlink_all_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/// RichMenuBatchUnlinkAllOperation : Unlink the rich menu from all users linked to the rich menu.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct RichMenuBatchUnlinkAllOperation {
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}
21
22impl RichMenuBatchUnlinkAllOperation {
23    /// Unlink the rich menu from all users linked to the rich menu.
24    pub fn new(r#type: String) -> RichMenuBatchUnlinkAllOperation {
25        RichMenuBatchUnlinkAllOperation {
26            r#type: Some(r#type),
27        }
28    }
29}