openapi_github/models/
clone_traffic.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/// CloneTraffic : Clone Traffic
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CloneTraffic {
17    #[serde(rename = "count")]
18    pub count: i32,
19    #[serde(rename = "uniques")]
20    pub uniques: i32,
21    #[serde(rename = "clones")]
22    pub clones: Vec<models::Traffic>,
23}
24
25impl CloneTraffic {
26    /// Clone Traffic
27    pub fn new(count: i32, uniques: i32, clones: Vec<models::Traffic>) -> CloneTraffic {
28        CloneTraffic {
29            count,
30            uniques,
31            clones,
32        }
33    }
34}
35