hanzo-client 8.5.156

Generated client for the Hanzo API — every service, one crate.
Documentation
/*
 * 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 Funnel {
    /// Available separates \"this org has no traffic\" from \"we could not ask\". False means the warehouse was unreachable or the org has emitted nothing at all, and every count below is then a placeholder zero rather than a measurement — a caller must read this before reading any of them.
    #[serde(rename = "available", skip_serializing_if = "Option::is_none")]
    pub available: Option<bool>,
    /// Orders counts completed orders in the window — purchases, not carts started.
    #[serde(rename = "orders", skip_serializing_if = "Option::is_none")]
    pub orders: Option<i32>,
    /// Pageviews counts page events in the window, one per view rather than per person, so a single visitor reading ten pages counts ten.
    #[serde(rename = "pageviews", skip_serializing_if = "Option::is_none")]
    pub pageviews: Option<i32>,
    /// Revenue is the sum of the amounts those orders reported, in whatever currency the beacon stamped on them (major units, e.g. 49.5 for $49.50) — NOT cents, and not converted to a single currency. Contrast revenueCents on the profile, which is the money of record.
    #[serde(rename = "revenue", skip_serializing_if = "Option::is_none")]
    pub revenue: Option<f64>,
    /// Signups counts completed signups in the window, the step where an anonymous visitor becomes somebody with an account.
    #[serde(rename = "signups", skip_serializing_if = "Option::is_none")]
    pub signups: Option<i32>,
    /// Visitors is the number of DISTINCT people seen in the window, counted by the beacon's distinct id — so it is unique visitors, not sessions and not views.
    #[serde(rename = "visitors", skip_serializing_if = "Option::is_none")]
    pub visitors: Option<i32>,
    /// WindowDays is the length of the trailing window every count covers, so a reader knows whether 40 signups is a month or a day.
    #[serde(rename = "windowDays", skip_serializing_if = "Option::is_none")]
    pub window_days: Option<i32>,
}

impl Funnel {
    pub fn new() -> Funnel {
        Funnel {
            available: None,
            orders: None,
            pageviews: None,
            revenue: None,
            signups: None,
            visitors: None,
            window_days: None,
        }
    }
}