webhook_line/models/
mention.rs

1/*
2 * Webhook Type Definition
3 *
4 * Webhook event definition of the LINE Messaging API
5 *
6 * The version of the OpenAPI document: 1.0.0
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 Mention {
16    /// Array of one or more mention objects. Max: 20 mentions
17    #[serde(rename = "mentionees")]
18    pub mentionees: Vec<models::Mentionee>,
19}
20
21impl Mention {
22    pub fn new(mentionees: Vec<models::Mentionee>) -> Mention {
23        Mention {
24            mentionees,
25        }
26    }
27}
28