pub struct CodeView {
pub clicks: Option<i32>,
pub code: Option<String>,
pub conversions: Option<i32>,
pub created_at: Option<i32>,
pub label: Option<String>,
pub signups: Option<i32>,
pub url: Option<String>,
}Fields§
§clicks: Option<i32>Clicks is how many pings this code has taken. The one STORED counter here and pure vanity: no accrual or payout reads it, pings are coalesced in memory and flushed in batches, and a dropped tally is accepted rather than contending with the money write path. Do not reconcile it against anything.
code: Option<String>Code is the link’s slug — 3–32 chars of a–z, 0–9 and hyphen — unique across the WHOLE directory, so any affiliate’s code resolves an attribution.
conversions: Option<i32>Conversions is how many of those signups have actually produced positive commission for the caller. Also derived, from the accrual rows, so it is ≤ signups and lags a referral until the first sweep after it spends.
created_at: Option<i32>CreatedAt is when the link was minted, Unix seconds UTC.
label: Option<String>Label is the caller’s own note for the link ("twitter", "newsletter"). Cosmetic: trimmed, stripped of control characters, capped at 48 bytes, and never part of the code. "primary" on the link mirrored at approval.
signups: Option<i32>Signups is how many orgs were attributed with this code — DERIVED by counting attribution edges, never stored, so it cannot drift from the ledger.
url: Option<String>URL is the full shareable link, the brand host plus ?aff=. The host is the deployment’s own brand, so a Lux or Zoo install never mints a hanzo.ai link.