Skip to main content

hanzo_client/models/
overview_view.rs

1/*
2 * Hanzo Cloud API
3 *
4 * 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/.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct OverviewView {
16    /// Custom is true when the org replaced the shared playbook with one of its own — the difference between \"everyone's checklist\" and \"the one you authored\".
17    #[serde(rename = "custom", skip_serializing_if = "Option::is_none")]
18    pub custom: Option<bool>,
19    /// Funnel is the org's analytics lens, present only where the read asked for it — absent means it was not requested, never that the org has no traffic.
20    #[serde(rename = "funnel", skip_serializing_if = "Option::is_none")]
21    pub funnel: Option<Box<models::Funnel>>,
22    /// Progress is how far through the journey the org is.
23    #[serde(rename = "progress", skip_serializing_if = "Option::is_none")]
24    pub progress: Option<Box<models::ProgressView>>,
25    /// Steps are every enabled step with the org's own state folded in, in authoring order.
26    #[serde(rename = "steps", skip_serializing_if = "Option::is_none")]
27    pub steps: Option<Vec<models::StepView>>,
28    /// Title is the playbook's name as it heads the checklist.
29    #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
30    pub title: Option<String>,
31    /// Version identifies the playbook this journey came from, so a caller can tell that the checklist itself changed under them.
32    #[serde(rename = "version", skip_serializing_if = "Option::is_none")]
33    pub version: Option<String>,
34}
35
36impl OverviewView {
37    pub fn new() -> OverviewView {
38        OverviewView {
39            custom: None,
40            funnel: None,
41            progress: None,
42            steps: None,
43            title: None,
44            version: None,
45        }
46    }
47}
48