jira_api_v2/models/
server_information.rs

1/*
2 * The Jira Cloud platform REST API
3 *
4 * Jira Cloud platform REST API documentation
5 *
6 * The version of the OpenAPI document: 1001.0.0-SNAPSHOT
7 * Contact: ecosystem@atlassian.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// ServerInformation : Details about the Jira instance.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ServerInformation {
17    /// The base URL of the Jira instance.
18    #[serde(rename = "baseUrl", skip_serializing_if = "Option::is_none")]
19    pub base_url: Option<String>,
20    /// The version of Jira.
21    #[serde(rename = "version", skip_serializing_if = "Option::is_none")]
22    pub version: Option<String>,
23    /// The major, minor, and revision version numbers of the Jira version.
24    #[serde(rename = "versionNumbers", skip_serializing_if = "Option::is_none")]
25    pub version_numbers: Option<Vec<i32>>,
26    /// The type of server deployment. This is always returned as *Cloud*.
27    #[serde(rename = "deploymentType", skip_serializing_if = "Option::is_none")]
28    pub deployment_type: Option<String>,
29    /// The build number of the Jira version.
30    #[serde(rename = "buildNumber", skip_serializing_if = "Option::is_none")]
31    pub build_number: Option<i32>,
32    /// The timestamp when the Jira version was built.
33    #[serde(rename = "buildDate", skip_serializing_if = "Option::is_none")]
34    pub build_date: Option<String>,
35    /// The time in Jira when this request was responded to.
36    #[serde(rename = "serverTime", skip_serializing_if = "Option::is_none")]
37    pub server_time: Option<String>,
38    /// The unique identifier of the Jira version.
39    #[serde(rename = "scmInfo", skip_serializing_if = "Option::is_none")]
40    pub scm_info: Option<String>,
41    /// The name of the Jira instance.
42    #[serde(rename = "serverTitle", skip_serializing_if = "Option::is_none")]
43    pub server_title: Option<String>,
44    /// Jira instance health check results. Deprecated and no longer returned.
45    #[serde(rename = "healthChecks", skip_serializing_if = "Option::is_none")]
46    pub health_checks: Option<Vec<models::HealthCheckResult>>,
47}
48
49impl ServerInformation {
50    /// Details about the Jira instance.
51    pub fn new() -> ServerInformation {
52        ServerInformation {
53            base_url: None,
54            version: None,
55            version_numbers: None,
56            deployment_type: None,
57            build_number: None,
58            build_date: None,
59            server_time: None,
60            scm_info: None,
61            server_title: None,
62            health_checks: None,
63        }
64    }
65}
66