gitea_client/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.22.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// NodeInfoSoftware : NodeInfoSoftware contains Metadata about server software in use
15#[derive(Clone, Default, Debug, PartialEq, 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