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
/*
* 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 LeaderboardRow {
/// AccruedCents is that affiliate's lifetime commission accrued, in cents, and what the board is ordered by. An aggregate: no per-customer figure is exposed.
#[serde(rename = "accruedCents", skip_serializing_if = "Option::is_none")]
pub accrued_cents: Option<i32>,
/// Handle is the affiliate's self-chosen display name — the only identity the board ever carries. The org behind it is never disclosed.
#[serde(rename = "handle", skip_serializing_if = "Option::is_none")]
pub handle: Option<String>,
/// IsYou marks the caller's own row, so a client can highlight it without matching on a handle. Absent on every other row.
#[serde(rename = "isYou", skip_serializing_if = "Option::is_none")]
pub is_you: Option<bool>,
/// Rank is the position in the GLOBAL approved set ordered by lifetime accrued commission, 1-based. Affiliates that set no handle still occupy their rank and are simply not listed, so the visible ranks have gaps and the board is not a complete roster. On the caller's own row the rank is computed over the whole set, so it is exact well outside the top page.
#[serde(rename = "rank", skip_serializing_if = "Option::is_none")]
pub rank: Option<i32>,
/// ReferredCount is how many orgs that affiliate directly referred — a count only, never which orgs.
#[serde(rename = "referredCount", skip_serializing_if = "Option::is_none")]
pub referred_count: Option<i32>,
}
impl LeaderboardRow {
pub fn new() -> LeaderboardRow {
LeaderboardRow {
accrued_cents: None,
handle: None,
is_you: None,
rank: None,
referred_count: None,
}
}
}