Skip to main content

hanzo_client/models/
github_repo_view.rs

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