Skip to main content

clientapi_pbs/models/
version_get_version_response_data.rs

1/*
2 * Proxmox Backup Server API
3 *
4 * Generated from apidoc.js. NOT an official Proxmox specification. See https://pbs.proxmox.com/docs/api-viewer/ for the upstream documentation.
5 *
6 * The version of the OpenAPI document: 9.x
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 VersionGetVersionResponseData {
16
17    /// Version release
18    #[serde(rename = "release")]
19    pub release: String,
20
21    /// Version repository id
22    #[serde(rename = "repoid")]
23    pub repoid: String,
24
25    /// Version 'major.minor'
26    #[serde(rename = "version")]
27    pub version: String,
28
29
30}
31
32impl VersionGetVersionResponseData {
33    pub fn new(release: String, repoid: String, version: String) -> VersionGetVersionResponseData {
34        VersionGetVersionResponseData {
35            
36            release,
37            
38            repoid,
39            
40            version,
41            
42        }
43    }
44}
45
46