Skip to main content

hanzo_client/models/
strategy.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 Strategy {
16    /// Action is the tactic itself: the thing to go and do, stated imperatively.
17    #[serde(rename = "action", skip_serializing_if = "Option::is_none")]
18    pub action: Option<String>,
19    /// Blog is the tactic's long-form explainer; absent for tactics that have none.
20    #[serde(rename = "blog", skip_serializing_if = "Option::is_none")]
21    pub blog: Option<Box<models::Blog>>,
22    /// Category is the growth discipline the tactic belongs to — the axis `?category=` narrows the corpus on, and one of the facets a caller browses by.
23    #[serde(rename = "category", skip_serializing_if = "Option::is_none")]
24    pub category: Option<String>,
25    /// Enabled is the admin lever. Absent reads as ON; an explicit false drops the tactic from every org-facing corpus read while leaving it in the document.
26    #[serde(rename = "enabled", skip_serializing_if = "Option::is_none")]
27    pub enabled: Option<bool>,
28    /// Era separates an AI-era tactic (`modern`) from a classical one (`heritage`).
29    #[serde(rename = "era", skip_serializing_if = "Option::is_none")]
30    pub era: Option<String>,
31    /// ID is the tactic's stable slug, unique across the corpus.
32    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
33    pub id: Option<String>,
34    /// Principle is the spine slug this tactic files under (a Principle.Slug).
35    #[serde(rename = "principle", skip_serializing_if = "Option::is_none")]
36    pub principle: Option<String>,
37    /// Source is where the tactic came from — the attribution a reader is owed.
38    #[serde(rename = "source", skip_serializing_if = "Option::is_none")]
39    pub source: Option<String>,
40    /// Tags are PRECONDITIONS, not labels — every one must be satisfied by the org's observed profile before the tactic surfaces, so an untagged tactic is universally applicable. Two vocabularies: `stage:<research|formed|launched| activated|scaling>` reads the org's growth stage, `has:<capability>` reads an observed signal.
41    #[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
42    pub tags: Option<Vec<String>>,
43    /// Workload is how much effort running the tactic costs, so a corpus can be narrowed to what an org has the hands for right now.
44    #[serde(rename = "workload", skip_serializing_if = "Option::is_none")]
45    pub workload: Option<String>,
46}
47
48impl Strategy {
49    pub fn new() -> Strategy {
50        Strategy {
51            action: None,
52            blog: None,
53            category: None,
54            enabled: None,
55            era: None,
56            id: None,
57            principle: None,
58            source: None,
59            tags: None,
60            workload: None,
61        }
62    }
63}
64