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