mattermost_rust_client/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
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct OpenGraphArticle {
17    #[serde(rename = "published_time", skip_serializing_if = "Option::is_none")]
18    pub published_time: Option<String>,
19    #[serde(rename = "modified_time", skip_serializing_if = "Option::is_none")]
20    pub modified_time: Option<String>,
21    #[serde(rename = "expiration_time", skip_serializing_if = "Option::is_none")]
22    pub expiration_time: Option<String>,
23    #[serde(rename = "section", skip_serializing_if = "Option::is_none")]
24    pub section: Option<String>,
25    #[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
26    pub tags: Option<Vec<String>>,
27    #[serde(rename = "authors", skip_serializing_if = "Option::is_none")]
28    pub authors: Option<Vec<crate::models::OpenGraphArticleAuthorsInner>>,
29}
30
31impl OpenGraphArticle {
32    /// Article object used in OpenGraph metadata of a webpage, if type is article
33    pub fn new() -> OpenGraphArticle {
34        OpenGraphArticle {
35            published_time: None,
36            modified_time: None,
37            expiration_time: None,
38            section: None,
39            tags: None,
40            authors: None,
41        }
42    }
43}
44
45