fastcomments-sdk 2.0.0

Official FastComments Rust SDK (Typed API Client & Utilities)
Documentation
/*
 * fastcomments
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 0.0.0
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::client::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AggregationValue {
    /// Construct a type with a set of properties K of type T
    #[serde(rename = "groups", skip_serializing_if = "Option::is_none")]
    pub groups: Option<std::collections::HashMap<String, String>>,
    #[serde(rename = "stringValue", skip_serializing_if = "Option::is_none")]
    pub string_value: Option<String>,
    #[serde(rename = "numericValue", skip_serializing_if = "Option::is_none")]
    pub numeric_value: Option<f64>,
    #[serde(rename = "distinctCount", skip_serializing_if = "Option::is_none")]
    pub distinct_count: Option<i64>,
    /// Construct a type with a set of properties K of type T
    #[serde(rename = "distinctCounts", skip_serializing_if = "Option::is_none")]
    pub distinct_counts: Option<std::collections::HashMap<String, f64>>,
}

impl AggregationValue {
    pub fn new() -> AggregationValue {
        AggregationValue {
            groups: None,
            string_value: None,
            numeric_value: None,
            distinct_count: None,
            distinct_counts: None,
        }
    }
}