gitea_rs/models/
node_info_software.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/// NodeInfoSoftware : NodeInfoSoftware contains Metadata about server software in use
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct NodeInfoSoftware {
17    #[serde(rename = "homepage", skip_serializing_if = "Option::is_none")]
18    pub homepage: Option<String>,
19    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
20    pub name: Option<String>,
21    #[serde(rename = "repository", skip_serializing_if = "Option::is_none")]
22    pub repository: Option<String>,
23    #[serde(rename = "version", skip_serializing_if = "Option::is_none")]
24    pub version: Option<String>,
25}
26
27impl NodeInfoSoftware {
28    /// NodeInfoSoftware contains Metadata about server software in use
29    pub fn new() -> NodeInfoSoftware {
30        NodeInfoSoftware {
31            homepage: None,
32            name: None,
33            repository: None,
34            version: None,
35        }
36    }
37}
38
39