fastcomments-sdk 3.0.1

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 BulkAggregateQuestionResultsResponse {
    #[serde(rename = "status")]
    pub status: models::ApiStatus,
    /// Construct a type with a set of properties K of type T
    #[serde(rename = "data")]
    pub data: std::collections::HashMap<String, models::QuestionResultAggregationOverall>,
}

impl BulkAggregateQuestionResultsResponse {
    pub fn new(status: models::ApiStatus, data: std::collections::HashMap<String, models::QuestionResultAggregationOverall>) -> BulkAggregateQuestionResultsResponse {
        BulkAggregateQuestionResultsResponse {
            status,
            data,
        }
    }
}