Skip to main content

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