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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
* 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 Blueprint {
/// Brand is the white-label key this playbook serves. Empty is the shared default every unbranded deployment falls back to.
#[serde(rename = "brand", skip_serializing_if = "Option::is_none")]
pub brand: Option<String>,
/// Enabled is the whole-playbook lever. Absent reads as ON; an explicit false makes resolution skip this playbook entirely and fall through to the next tier, rather than serving an empty journey.
#[serde(rename = "enabled", skip_serializing_if = "Option::is_none")]
pub enabled: Option<bool>,
/// Principles are the fixed 64-archetype spine a tactic files under. It is authored data an operator organises the corpus by; nothing in the checklist engine reads it.
#[serde(rename = "principles", skip_serializing_if = "Option::is_none")]
pub principles: Option<Vec<models::Principle>>,
/// Sections are the journey's ordered phases.
#[serde(rename = "sections", skip_serializing_if = "Option::is_none")]
pub sections: Option<Vec<models::Section>>,
/// Steps are every checklist item, disabled ones included — this is the authored document, not the projection an org runs.
#[serde(rename = "steps", skip_serializing_if = "Option::is_none")]
pub steps: Option<Vec<models::JourneyStep>>,
/// Strategies are the tactics corpus the recommendation reads narrow.
#[serde(rename = "strategies", skip_serializing_if = "Option::is_none")]
pub strategies: Option<Vec<models::Strategy>>,
/// Templates are the reusable prompts and snippets steps reference by id.
#[serde(rename = "templates", skip_serializing_if = "Option::is_none")]
pub templates: Option<Vec<models::Page>>,
/// Title is the playbook's name as a person reads it.
#[serde(rename = "title", skip_serializing_if = "Option::is_none")]
pub title: Option<String>,
/// Version is the playbook's own name for this edition of its content, chosen by whoever authored it. It travels onto every journey projected from it. The store's numeric revision is a separate value and lives beside it.
#[serde(rename = "version", skip_serializing_if = "Option::is_none")]
pub version: Option<String>,
}
impl Blueprint {
pub fn new() -> Blueprint {
Blueprint {
brand: None,
enabled: None,
principles: None,
sections: None,
steps: None,
strategies: None,
templates: None,
title: None,
version: None,
}
}
}