gitea_rs/models/
wiki_page_meta_data.rs

1/*
2 * Gitea API.
3 *
4 * This documentation describes the Gitea API.
5 *
6 * The version of the OpenAPI document: 1.19.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// WikiPageMetaData : WikiPageMetaData wiki page meta information
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct WikiPageMetaData {
17    #[serde(rename = "html_url", skip_serializing_if = "Option::is_none")]
18    pub html_url: Option<String>,
19    #[serde(rename = "last_commit", skip_serializing_if = "Option::is_none")]
20    pub last_commit: Option<Box<crate::models::WikiCommit>>,
21    #[serde(rename = "sub_url", skip_serializing_if = "Option::is_none")]
22    pub sub_url: Option<String>,
23    #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
24    pub title: Option<String>,
25}
26
27impl WikiPageMetaData {
28    /// WikiPageMetaData wiki page meta information
29    pub fn new() -> WikiPageMetaData {
30        WikiPageMetaData {
31            html_url: None,
32            last_commit: None,
33            sub_url: None,
34            title: None,
35        }
36    }
37}
38
39