/*
* 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 AffiliateBoard {
/// Leaders are the top opt-in affiliates, by handle and aggregate figures only.
#[serde(rename = "leaders", skip_serializing_if = "Option::is_none")]
pub leaders: Option<Vec<models::LeaderboardRow>>,
/// Total is the approved population where it is known; omitted where the top page truncated and the caller has no rank to derive it from.
#[serde(rename = "total", skip_serializing_if = "Option::is_none")]
pub total: Option<i32>,
/// You is the caller's own row with its exact global rank; only an approved affiliate has one.
#[serde(rename = "you", skip_serializing_if = "Option::is_none")]
pub you: Option<Box<models::LeaderboardRow>>,
}
impl AffiliateBoard {
pub fn new() -> AffiliateBoard {
AffiliateBoard {
leaders: None,
total: None,
you: None,
}
}
}