messaging_api_line/models/
clipboard_action.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 ClipboardAction {
16    /// Type of action
17    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
18    pub r#type: Option<String>,
19    /// Label for the action.
20    #[serde(rename = "label", skip_serializing_if = "Option::is_none")]
21    pub label: Option<String>,
22    /// Text that is copied to the clipboard. Max character limit: 1000 
23    #[serde(rename = "clipboardText")]
24    pub clipboard_text: String,
25}
26
27impl ClipboardAction {
28    pub fn new(clipboard_text: String) -> ClipboardAction {
29        ClipboardAction {
30            r#type: None,
31            label: None,
32            clipboard_text,
33        }
34    }
35}
36