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 Enrolment {
    /// Created reports whether this call enrolled the org (201) or found an existing enrolment (200).
    #[serde(rename = "created", skip_serializing_if = "Option::is_none")]
    pub created: Option<bool>,
    /// GithubLogin is the linked forge account.
    #[serde(rename = "githubLogin", skip_serializing_if = "Option::is_none")]
    pub github_login: Option<String>,
    /// ID is the author record's server-minted handle, \"aut_\"-prefixed.
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// ShareBps is this author's royalty share in basis points of the spend their deployed work generates.
    #[serde(rename = "shareBps", skip_serializing_if = "Option::is_none")]
    pub share_bps: Option<i32>,
    /// Status is connected, approved or suspended. Only an approved author earns.
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<String>,
    /// Verified reports whether any repository or owner claim has been proven yet.
    #[serde(rename = "verified", skip_serializing_if = "Option::is_none")]
    pub verified: Option<bool>,
    /// VerifyCode is this author's stable proof token — the value a repository's verify file must carry.
    #[serde(rename = "verifyCode", skip_serializing_if = "Option::is_none")]
    pub verify_code: Option<String>,
    /// VerifyFile is the repo-root file the file method reads, on the default branch.
    #[serde(rename = "verifyFile", skip_serializing_if = "Option::is_none")]
    pub verify_file: Option<String>,
    /// VerifySnippet is that file's exact contents, ready to commit.
    #[serde(rename = "verifySnippet", skip_serializing_if = "Option::is_none")]
    pub verify_snippet: Option<String>,
}

impl Enrolment {
    pub fn new() -> Enrolment {
        Enrolment {
            created: None,
            github_login: None,
            id: None,
            share_bps: None,
            status: None,
            verified: None,
            verify_code: None,
            verify_file: None,
            verify_snippet: None,
        }
    }
}