hanzo-client 8.5.156

Generated client for the Hanzo API — every service, one crate.
Documentation
/*
 * 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,
        }
    }
}