gitea_rs/models/
wiki_commit.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/// WikiCommit : WikiCommit page commit/revision
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct WikiCommit {
17    #[serde(rename = "author", skip_serializing_if = "Option::is_none")]
18    pub author: Option<Box<crate::models::CommitUser>>,
19    #[serde(rename = "commiter", skip_serializing_if = "Option::is_none")]
20    pub commiter: Option<Box<crate::models::CommitUser>>,
21    #[serde(rename = "message", skip_serializing_if = "Option::is_none")]
22    pub message: Option<String>,
23    #[serde(rename = "sha", skip_serializing_if = "Option::is_none")]
24    pub sha: Option<String>,
25}
26
27impl WikiCommit {
28    /// WikiCommit page commit/revision
29    pub fn new() -> WikiCommit {
30        WikiCommit {
31            author: None,
32            commiter: None,
33            message: None,
34            sha: None,
35        }
36    }
37}
38
39