1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
* Hanzo Cloud API
*
* The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GithubRepoView {
/// DefaultBranch is the repo's default branch at GitHub.
#[serde(rename = "defaultBranch", skip_serializing_if = "Option::is_none")]
pub default_branch: Option<String>,
/// FullName is GitHub's owner/name.
#[serde(rename = "fullName", skip_serializing_if = "Option::is_none")]
pub full_name: Option<String>,
/// HTMLURL is the repo's page at GitHub.
#[serde(rename = "htmlUrl", skip_serializing_if = "Option::is_none")]
pub html_url: Option<String>,
/// Imported is whether this repo has been mirrored into git.hanzo.ai.
#[serde(rename = "imported", skip_serializing_if = "Option::is_none")]
pub imported: Option<bool>,
/// LastSyncedAt is the last successful mirror, RFC 3339 UTC. Absent if never.
#[serde(rename = "lastSyncedAt", skip_serializing_if = "Option::is_none")]
pub last_synced_at: Option<String>,
/// Name is the repository's short name within the installation.
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
/// Private is GitHub's visibility bit for the repo.
#[serde(rename = "private", skip_serializing_if = "Option::is_none")]
pub private: Option<bool>,
/// SyncStatus is \"synced\", \"conflict\", or \"\" when the repo is not imported.
#[serde(rename = "syncStatus", skip_serializing_if = "Option::is_none")]
pub sync_status: Option<String>,
}
impl GithubRepoView {
pub fn new() -> GithubRepoView {
GithubRepoView {
default_branch: None,
full_name: None,
html_url: None,
imported: None,
last_synced_at: None,
name: None,
private: None,
sync_status: None,
}
}
}