fastcomments_sdk/client/src/models/
question_datum.rs

1/*
2 * fastcomments
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 0.0.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::client::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct QuestionDatum {
16    /// Construct a type with a set of properties K of type T
17    #[serde(rename = "v")]
18    pub v: std::collections::HashMap<String, f64>,
19    #[serde(rename = "total")]
20    pub total: i64,
21}
22
23impl QuestionDatum {
24    pub fn new(v: std::collections::HashMap<String, f64>, total: i64) -> QuestionDatum {
25        QuestionDatum {
26            v,
27            total,
28        }
29    }
30}
31