Skip to main content

clientapi_pbs/models/
nodes_time_get_time_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 NodesTimeGetTimeResponseData {
16
17    /// Seconds since 1970-01-01 00:00:00 UTC. (local time)
18    #[serde(rename = "localtime")]
19    pub localtime: i64,
20
21    /// Seconds since 1970-01-01 00:00:00 UTC.
22    #[serde(rename = "time")]
23    pub time: i64,
24
25    /// Time zone. The file '/usr/share/zoneinfo/zone.tab' contains the list of valid names.
26    #[serde(rename = "timezone")]
27    pub timezone: String,
28
29
30}
31
32impl NodesTimeGetTimeResponseData {
33    pub fn new(localtime: i64, time: i64, timezone: String) -> NodesTimeGetTimeResponseData {
34        NodesTimeGetTimeResponseData {
35            
36            localtime,
37            
38            time,
39            
40            timezone,
41            
42        }
43    }
44}
45
46