1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* Linkbreakers API
*
* This is a documentation of all the APIs of Linkbreakers
*
* The version of the OpenAPI document: 1.131.7
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// GetAttributeMetricRequest : GetAttributeMetricRequest retrieves aggregate statistics for one visitor attribute, for example the average rating.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetAttributeMetricRequest {
#[serde(rename = "endDate", skip_serializing_if = "Option::is_none")]
pub end_date: Option<String>,
#[serde(rename = "key", skip_serializing_if = "Option::is_none")]
pub key: Option<String>,
/// Optional link filter (UUID). Attributes belong to the visitor rather than to a link, so this filters the audience: visitors who interacted with the link, whatever set the attribute.
#[serde(rename = "linkId", skip_serializing_if = "Option::is_none")]
pub link_id: Option<String>,
#[serde(rename = "startDate", skip_serializing_if = "Option::is_none")]
pub start_date: Option<String>,
}
impl GetAttributeMetricRequest {
/// GetAttributeMetricRequest retrieves aggregate statistics for one visitor attribute, for example the average rating.
pub fn new() -> GetAttributeMetricRequest {
GetAttributeMetricRequest {
end_date: None,
key: None,
link_id: None,
start_date: None,
}
}
}