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