messaging_api_line/models/
mention_substitution_object.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/// MentionSubstitutionObject : An object representing a mention substitution.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct MentionSubstitutionObject {
17    /// Type of substitution object
18    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
19    pub r#type: Option<String>,
20    #[serde(rename = "mentionee")]
21    pub mentionee: Box<models::MentionTarget>,
22}
23
24impl MentionSubstitutionObject {
25    /// An object representing a mention substitution.
26    pub fn new(r#type: String, mentionee: models::MentionTarget) -> MentionSubstitutionObject {
27        MentionSubstitutionObject {
28            r#type: Some(r#type),
29            mentionee: Box::new(mentionee),
30        }
31    }
32}