Skip to main content

hanzo_client/models/
blog.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 Blog {
16    /// CaseStudy is one worked instance — somebody who ran it, and what happened.
17    #[serde(rename = "caseStudy", skip_serializing_if = "Option::is_none")]
18    pub case_study: Option<String>,
19    /// How is the run book: the steps to execute the tactic.
20    #[serde(rename = "how", skip_serializing_if = "Option::is_none")]
21    pub how: Option<String>,
22    /// Slug is the post's address — the last path segment it is published at.
23    #[serde(rename = "slug", skip_serializing_if = "Option::is_none")]
24    pub slug: Option<String>,
25    /// Title is the post's headline.
26    #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
27    pub title: Option<String>,
28    /// Why is the mechanism: the reason the tactic works, stated as a principle rather than as instructions.
29    #[serde(rename = "why", skip_serializing_if = "Option::is_none")]
30    pub why: Option<String>,
31}
32
33impl Blog {
34    pub fn new() -> Blog {
35        Blog {
36            case_study: None,
37            how: None,
38            slug: None,
39            title: None,
40            why: None,
41        }
42    }
43}
44