insight_line/models/
get_message_event_response_click.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct GetMessageEventResponseClick {
16    /// The URL's serial number.
17    #[serde(rename = "seq", skip_serializing_if = "Option::is_none")]
18    pub seq: Option<i32>,
19    /// URL.
20    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
21    pub url: Option<String>,
22    /// Number of times the URL was opened.
23    #[serde(rename = "click", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
24    pub click: Option<Option<i64>>,
25    /// Number of users that opened the URL.
26    #[serde(rename = "uniqueClick", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
27    pub unique_click: Option<Option<i64>>,
28    /// Number of users who opened this url through any link in the message. If a message contains two links to the same URL and a user opens both links, they're counted only once.
29    #[serde(rename = "uniqueClickOfRequest", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
30    pub unique_click_of_request: Option<Option<i64>>,
31}
32
33impl GetMessageEventResponseClick {
34    pub fn new() -> GetMessageEventResponseClick {
35        GetMessageEventResponseClick {
36            seq: None,
37            url: None,
38            click: None,
39            unique_click: None,
40            unique_click_of_request: None,
41        }
42    }
43}
44