linkbreakers 1.123.1

Official Rust SDK for the Linkbreakers API
Documentation
/*
 * Linkbreakers API
 *
 * This is a documentation of all the APIs of Linkbreakers
 *
 * The version of the OpenAPI document: 1.123.1
 * 
 * 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,
        }
    }
}