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
/*
* 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 ProfileMetrics {
/// Funnel is what the org's analytics observed over the trailing window. Read its `available` first: an org with no analytics reports zeros here, and zero traffic and no measurement are different facts.
#[serde(rename = "funnel", skip_serializing_if = "Option::is_none")]
pub funnel: Option<Box<models::Funnel>>,
/// LaunchProgress is the org's own position in the launch checklist, folded in so a profile carries both what the org has BUILT and what it has DONE.
#[serde(rename = "launchProgress", skip_serializing_if = "Option::is_none")]
pub launch_progress: Option<Box<models::ProgressView>>,
/// Records is how many business records the org holds — the volume that tells a real book of customers from an empty account. It feeds the `customers` signal, which crosses at a threshold rather than at one row.
#[serde(rename = "records", skip_serializing_if = "Option::is_none")]
pub records: Option<i32>,
/// RevenueCents is the org's money OF RECORD — what its books say, in whole cents, never a float and never a display string. This is the number the scaling stage is decided on; funnel.revenue is the beacon's separate, unreconciled view of the same business. Zero when the org has none, and also zero when the books could not be read, which is why the `revenue` signal beside it is the thing to trust.
#[serde(rename = "revenueCents", skip_serializing_if = "Option::is_none")]
pub revenue_cents: Option<i32>,
}
impl ProfileMetrics {
pub fn new() -> ProfileMetrics {
ProfileMetrics {
funnel: None,
launch_progress: None,
records: None,
revenue_cents: None,
}
}
}