insight_line/models/
get_message_event_response.rs

1/*
2 * LINE Messaging API(Insight)
3 *
4 * This document describes LINE Messaging API(Insight).
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/// GetMessageEventResponse : Statistics about how users interact with narrowcast messages or broadcast messages sent from your LINE Official Account.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct GetMessageEventResponse {
17    #[serde(rename = "overview", skip_serializing_if = "Option::is_none")]
18    pub overview: Option<Box<models::GetMessageEventResponseOverview>>,
19    /// Array of information about individual message bubbles.
20    #[serde(rename = "messages", skip_serializing_if = "Option::is_none")]
21    pub messages: Option<Vec<models::GetMessageEventResponseMessage>>,
22    /// Array of information about opened URLs in the message.
23    #[serde(rename = "clicks", skip_serializing_if = "Option::is_none")]
24    pub clicks: Option<Vec<models::GetMessageEventResponseClick>>,
25}
26
27impl GetMessageEventResponse {
28    /// Statistics about how users interact with narrowcast messages or broadcast messages sent from your LINE Official Account.
29    pub fn new() -> GetMessageEventResponse {
30        GetMessageEventResponse {
31            overview: None,
32            messages: None,
33            clicks: None,
34        }
35    }
36}
37