mattermost_client/openapi/models/
open_graph_article.rs

1/*
2 * Mattermost API Reference
3 *
4 * There is also a work-in-progress [Postman API reference](https://documenter.getpostman.com/view/4508214/RW8FERUn).
5 *
6 * The version of the OpenAPI document: 4.0.0
7 * Contact: feedback@mattermost.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// OpenGraphArticle : Article object used in OpenGraph metadata of a webpage, if type is article
12
13#[derive(Clone, Debug, PartialEq, Default, serde::Serialize, serde::Deserialize)]
14pub struct OpenGraphArticle {
15    #[serde(rename = "published_time", skip_serializing_if = "Option::is_none")]
16    pub published_time: Option<String>,
17    #[serde(rename = "modified_time", skip_serializing_if = "Option::is_none")]
18    pub modified_time: Option<String>,
19    #[serde(rename = "expiration_time", skip_serializing_if = "Option::is_none")]
20    pub expiration_time: Option<String>,
21    #[serde(rename = "section", skip_serializing_if = "Option::is_none")]
22    pub section: Option<String>,
23    #[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
24    pub tags: Option<Vec<String>>,
25    #[serde(rename = "authors", skip_serializing_if = "Option::is_none")]
26    pub authors: Option<Vec<crate::openapi::models::OpenGraphArticleAuthorsInner>>,
27}
28
29impl OpenGraphArticle {
30    /// Article object used in OpenGraph metadata of a webpage, if type is article
31    pub fn new() -> OpenGraphArticle {
32        OpenGraphArticle {
33            published_time: None,
34            modified_time: None,
35            expiration_time: None,
36            section: None,
37            tags: None,
38            authors: None,
39        }
40    }
41}