Skip to main content

hanzo_client/models/
github_installation_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 GithubInstallationView {
16    /// Connected reports whether THIS org has already bound this account.
17    #[serde(rename = "connected", skip_serializing_if = "Option::is_none")]
18    pub connected: Option<bool>,
19    /// Grant is \"all\" or \"selected\" — how many of the account's repositories the install covers. A reader deciding what to import needs the reach, not just the name.
20    #[serde(rename = "grant", skip_serializing_if = "Option::is_none")]
21    pub grant: Option<String>,
22    /// HTMLURL is the account's page on GitHub.
23    #[serde(rename = "htmlUrl", skip_serializing_if = "Option::is_none")]
24    pub html_url: Option<String>,
25    /// Login is the GitHub account name — the org or user the App is installed on.
26    #[serde(rename = "login", skip_serializing_if = "Option::is_none")]
27    pub login: Option<String>,
28    /// Type is \"Organization\" or \"User\".
29    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
30    pub r#type: Option<String>,
31}
32
33impl GithubInstallationView {
34    pub fn new() -> GithubInstallationView {
35        GithubInstallationView {
36            connected: None,
37            grant: None,
38            html_url: None,
39            login: None,
40            r#type: None,
41        }
42    }
43}
44