hanzo_client/models/version_message.rs
1/*
2 * Hanzo Cloud API
3 *
4 * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
5 *
6 * The version of the OpenAPI document: v1
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct VersionMessage {
16 /// BuildDate is the time THIS RESPONSE was generated, in RFC 3339 — not a build timestamp. There is no argocd build here to report one for.
17 #[serde(rename = "BuildDate", skip_serializing_if = "Option::is_none")]
18 pub build_date: Option<String>,
19 /// Compiler is the constant \"gc\" the SPA expects; it is not read from this process.
20 #[serde(rename = "Compiler", skip_serializing_if = "Option::is_none")]
21 pub compiler: Option<String>,
22 /// GoVersion is always empty.
23 #[serde(rename = "GoVersion", skip_serializing_if = "Option::is_none")]
24 pub go_version: Option<String>,
25 /// Platform is the constant \"linux/amd64\" the SPA expects; it is not this process's own GOOS/GOARCH.
26 #[serde(rename = "Platform", skip_serializing_if = "Option::is_none")]
27 pub platform: Option<String>,
28 /// Version names the projection, \"hanzo-cd (projection)\".
29 #[serde(rename = "Version", skip_serializing_if = "Option::is_none")]
30 pub version: Option<String>,
31}
32
33impl VersionMessage {
34 pub fn new() -> VersionMessage {
35 VersionMessage {
36 build_date: None,
37 compiler: None,
38 go_version: None,
39 platform: None,
40 version: None,
41 }
42 }
43}
44