gitea_client/models/
user_heatmap_data.rs

1/*
2 * Gitea API
3 *
4 * This documentation describes the Gitea API.
5 *
6 * The version of the OpenAPI document: 1.22.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// UserHeatmapData : UserHeatmapData represents the data needed to create a heatmap
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct UserHeatmapData {
17    #[serde(rename = "contributions", skip_serializing_if = "Option::is_none")]
18    pub contributions: Option<i64>,
19    /// TimeStamp defines a timestamp
20    #[serde(rename = "timestamp", skip_serializing_if = "Option::is_none")]
21    pub timestamp: Option<i64>,
22}
23
24impl UserHeatmapData {
25    /// UserHeatmapData represents the data needed to create a heatmap
26    pub fn new() -> UserHeatmapData {
27        UserHeatmapData {
28            contributions: None,
29            timestamp: None,
30        }
31    }
32}
33