insight_line/models/
get_statistics_per_unit_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 GetStatisticsPerUnitResponseClick {
16    /// The URL's serial number.
17    #[serde(rename = "seq")]
18    pub seq: i64,
19    /// URL.
20    #[serde(rename = "url")]
21    pub url: String,
22    /// Number of times the URL in the bubble 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 in the bubble.
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 another message bubble contains the same URL and a user opens both links, it's 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 GetStatisticsPerUnitResponseClick {
34    pub fn new(seq: i64, url: String) -> GetStatisticsPerUnitResponseClick {
35        GetStatisticsPerUnitResponseClick {
36            seq,
37            url,
38            click: None,
39            unique_click: None,
40            unique_click_of_request: None,
41        }
42    }
43}
44