pub struct Application {
pub code: Option<String>,
pub created: Option<bool>,
pub id: Option<String>,
pub rate_bps: Option<i32>,
pub requested_code: Option<String>,
pub status: Option<String>,
}Fields§
§code: Option<String>Code is the minted referral code. Empty on a first apply — applying does not mint a code, approval does; a re-apply echoes whatever the row already holds.
created: Option<bool>Created says whether THIS call made the row. false means the org had already applied and nothing changed — no second row, no reset of an existing approval. The HTTP status states the same fact: 201 when true, 200 when false.
id: Option<String>ID is the affiliate’s server-minted handle, "aff_"-prefixed — the id staff approve, suspend, re-rate and pay against.
rate_bps: Option<i32>RateBps is the direct (level 1) commission rate the row carries, in basis points OF Hanzo’s margin (2000 = 20% of margin, never of the customer’s bill).
requested_code: Option<String>RequestedCode echoes the vanity code asked for, normalized to lower case. It is a request only: approval mints a different slug if this one is taken.
status: Option<String>Status is "applied" for a row this call created. A re-apply echoes the existing row’s status, which may already be "approved" or "suspended".
Implementations§
Source§impl Application
impl Application
pub fn new() -> Application
Trait Implementations§
Source§impl Clone for Application
impl Clone for Application
Source§fn clone(&self) -> Application
fn clone(&self) -> Application
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more