1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
* 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,
}
}
}