Skip to main content

geoengine_api_client/models/
server_info.rs

1/*
2 * Geo Engine API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * Contact: dev@geoengine.de
7 * Generated by: https://openapi-generator.tech
8 */
9
10use crate::models;
11use serde::{Deserialize, Serialize};
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct ServerInfo {
15    #[serde(rename = "buildDate")]
16    pub build_date: String,
17    #[serde(rename = "commitHash")]
18    pub commit_hash: String,
19    #[serde(rename = "features")]
20    pub features: String,
21    #[serde(rename = "version")]
22    pub version: String,
23}
24
25impl ServerInfo {
26    pub fn new(build_date: String, commit_hash: String, features: String, version: String) -> ServerInfo {
27        ServerInfo {
28            build_date,
29            commit_hash,
30            features,
31            version,
32        }
33    }
34}
35