messaging_api_line/models/all_mention_target.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 AllMentionTarget {
16 /// Target to be mentioned
17 #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
18 pub r#type: Option<String>,
19}
20
21impl AllMentionTarget {
22 pub fn new(r#type: String) -> AllMentionTarget {
23 AllMentionTarget {
24 r#type: Some(r#type),
25 }
26 }
27}