hanzo_client/models/section.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 Section {
16 /// Detail is what this phase of the journey is for, in prose.
17 #[serde(rename = "detail", skip_serializing_if = "Option::is_none")]
18 pub detail: Option<String>,
19 /// Enabled is the admin lever. Absent reads as ON, so only an explicit false turns a phase off — and it takes every step filed under it out of the journey, not just the heading.
20 #[serde(rename = "enabled", skip_serializing_if = "Option::is_none")]
21 pub enabled: Option<bool>,
22 /// ID is the slug a step's `section` names to file itself under this phase.
23 #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
24 pub id: Option<String>,
25 /// Order places the phase in the journey, ascending. Ties fall back to authoring order, and an omitted order sorts as 0 — ahead of everything.
26 #[serde(rename = "order", skip_serializing_if = "Option::is_none")]
27 pub order: Option<i32>,
28 /// Title is the phase heading a person reads above its steps.
29 #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
30 pub title: Option<String>,
31}
32
33impl Section {
34 pub fn new() -> Section {
35 Section {
36 detail: None,
37 enabled: None,
38 id: None,
39 order: None,
40 title: None,
41 }
42 }
43}
44