Skip to main content

puddle_farm_api_client_openapi_client/models/
popularity_result.rs

1/*
2 * puddle.farm API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct PopularityResult {
16    /// Character popularity per player
17    #[serde(rename = "per_player", skip_serializing_if = "Option::is_none")]
18    pub per_player: Option<Vec<models::PopularityResultChar>>,
19    /// Character popularity per character
20    #[serde(rename = "per_character", skip_serializing_if = "Option::is_none")]
21    pub per_character: Option<Vec<models::PopularityResultChar>>,
22    /// Total number of players for popularity calculation
23    #[serde(rename = "per_player_total", skip_serializing_if = "Option::is_none")]
24    pub per_player_total: Option<i64>,
25    /// Total number of characters for popularity calculation
26    #[serde(rename = "per_character_total", skip_serializing_if = "Option::is_none")]
27    pub per_character_total: Option<i64>,
28    /// Timestamp of the last update
29    #[serde(rename = "last_update", skip_serializing_if = "Option::is_none")]
30    pub last_update: Option<String>,
31}
32
33impl PopularityResult {
34    pub fn new() -> PopularityResult {
35        PopularityResult {
36            per_player: None,
37            per_character: None,
38            per_player_total: None,
39            per_character_total: None,
40            last_update: None,
41        }
42    }
43}
44