openapi_github/models/
commit_activity.rs

1/*
2 * GitHub's official OpenAPI spec + Octokit extension
3 *
4 * OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs
5 *
6 * The version of the OpenAPI document: 16.6.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// CommitActivity : Commit Activity
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CommitActivity {
17    #[serde(rename = "days")]
18    pub days: Vec<i32>,
19    #[serde(rename = "total")]
20    pub total: i32,
21    #[serde(rename = "week")]
22    pub week: i32,
23}
24
25impl CommitActivity {
26    /// Commit Activity
27    pub fn new(days: Vec<i32>, total: i32, week: i32) -> CommitActivity {
28        CommitActivity {
29            days,
30            total,
31            week,
32        }
33    }
34}
35