hanzo_client/models/strategy_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 StrategyView {
16 /// Action is the tactic itself: the thing to go and do.
17 #[serde(rename = "action", skip_serializing_if = "Option::is_none")]
18 pub action: Option<String>,
19 /// Category is the growth discipline the tactic belongs to — the axis `?category=` narrows on.
20 #[serde(rename = "category", skip_serializing_if = "Option::is_none")]
21 pub category: Option<String>,
22 /// ID is the tactic's stable slug in the corpus.
23 #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
24 pub id: Option<String>,
25 /// Tags are the PRECONDITIONS this tactic already satisfied to appear in the answer — `stage:<name>` and `has:<capability>` predicates over the org's observed profile. They are carried back so a caller can show why a tactic surfaced, not so it can filter again.
26 #[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
27 pub tags: Option<Vec<String>>,
28 /// Workload is how much effort running the tactic costs, so a corpus can be cut to what the org has the hands for.
29 #[serde(rename = "workload", skip_serializing_if = "Option::is_none")]
30 pub workload: Option<String>,
31}
32
33impl StrategyView {
34 pub fn new() -> StrategyView {
35 StrategyView {
36 action: None,
37 category: None,
38 id: None,
39 tags: None,
40 workload: None,
41 }
42 }
43}
44