openapi_github/models/simple_classroom_repository.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/// SimpleClassroomRepository : A GitHub repository view for Classroom
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct SimpleClassroomRepository {
17 /// A unique identifier of the repository.
18 #[serde(rename = "id")]
19 pub id: i32,
20 /// The full, globally unique name of the repository.
21 #[serde(rename = "full_name")]
22 pub full_name: String,
23 /// The URL to view the repository on GitHub.com.
24 #[serde(rename = "html_url")]
25 pub html_url: String,
26 /// The GraphQL identifier of the repository.
27 #[serde(rename = "node_id")]
28 pub node_id: String,
29 /// Whether the repository is private.
30 #[serde(rename = "private")]
31 pub private: bool,
32 /// The default branch for the repository.
33 #[serde(rename = "default_branch")]
34 pub default_branch: String,
35}
36
37impl SimpleClassroomRepository {
38 /// A GitHub repository view for Classroom
39 pub fn new(id: i32, full_name: String, html_url: String, node_id: String, private: bool, default_branch: String) -> SimpleClassroomRepository {
40 SimpleClassroomRepository {
41 id,
42 full_name,
43 html_url,
44 node_id,
45 private,
46 default_branch,
47 }
48 }
49}
50