hanzo_client/models/help_article.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 HelpArticle {
16 /// Body is the article's rich-text content as the author saved it.
17 #[serde(rename = "body", skip_serializing_if = "Option::is_none")]
18 pub body: Option<String>,
19 /// Category is the name of the knowledge-base section the article sits in, or empty when it is filed under none.
20 #[serde(rename = "category", skip_serializing_if = "Option::is_none")]
21 pub category: Option<String>,
22 /// Excerpt is the short summary the author wrote for listings, or empty.
23 #[serde(rename = "excerpt", skip_serializing_if = "Option::is_none")]
24 pub excerpt: Option<String>,
25 /// Slug is the article's stable public identifier — the path segment it was addressed by.
26 #[serde(rename = "slug", skip_serializing_if = "Option::is_none")]
27 pub slug: Option<String>,
28 /// Title is the article's headline.
29 #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
30 pub title: Option<String>,
31 /// UpdatedAt is the unix second the article was last written.
32 #[serde(rename = "updatedAt", skip_serializing_if = "Option::is_none")]
33 pub updated_at: Option<i32>,
34}
35
36impl HelpArticle {
37 pub fn new() -> HelpArticle {
38 HelpArticle {
39 body: None,
40 category: None,
41 excerpt: None,
42 slug: None,
43 title: None,
44 updated_at: None,
45 }
46 }
47}
48