Skip to main content

puddle_farm_api_client_openapi_client/models/
distribution_response.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 DistributionResponse {
16    /// Timestamp of the distribution data
17    #[serde(rename = "timestamp", skip_serializing_if = "Option::is_none")]
18    pub timestamp: Option<String>,
19    #[serde(rename = "data", skip_serializing_if = "Option::is_none")]
20    pub data: Option<Box<models::DistributionEntry>>,
21}
22
23impl DistributionResponse {
24    pub fn new() -> DistributionResponse {
25        DistributionResponse {
26            timestamp: None,
27            data: None,
28        }
29    }
30}
31