Skip to main content

hanzo_client/models/
github_fork_out.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 GithubForkOut {
16    /// CloneURL is the fork's https git remote. GitHub populates a new fork in the background, so a clone issued the moment this answers can still find it empty.
17    #[serde(rename = "clone_url", skip_serializing_if = "Option::is_none")]
18    pub clone_url: Option<String>,
19    /// DefaultBranch is the branch the fork checks out, inherited from upstream.
20    #[serde(rename = "default_branch", skip_serializing_if = "Option::is_none")]
21    pub default_branch: Option<String>,
22    /// Existing reports that the fork was already there. GitHub answers 202 either way, so without this a caller cannot tell \"made you one\" from \"you had one\".
23    #[serde(rename = "existing", skip_serializing_if = "Option::is_none")]
24    pub existing: Option<bool>,
25    /// FullName is the fork's \"owner/repo\". The owner is the account it landed in — the request's org, or the installation's own account when none was named.
26    #[serde(rename = "full_name", skip_serializing_if = "Option::is_none")]
27    pub full_name: Option<String>,
28    /// HTMLURL is the fork's page on github.com.
29    #[serde(rename = "html_url", skip_serializing_if = "Option::is_none")]
30    pub html_url: Option<String>,
31}
32
33impl GithubForkOut {
34    pub fn new() -> GithubForkOut {
35        GithubForkOut {
36            clone_url: None,
37            default_branch: None,
38            existing: None,
39            full_name: None,
40            html_url: None,
41        }
42    }
43}
44