Skip to main content

clientapi_pve/models/
qemu_exec_status_response_data.rs

1/*
2 * Proxmox Virtual Environment API
3 *
4 * Generated from apidoc.js. NOT an official Proxmox specification. See https://pve.proxmox.com/pve-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 QemuExecStatusResponseData {
16
17    /// stderr of the process
18    #[serde(rename = "err-data", skip_serializing_if = "Option::is_none")]
19    pub err_data: Option<String>,
20
21    /// true if stderr was not fully captured
22    #[serde(rename = "err-truncated", skip_serializing_if = "Option::is_none")]
23    pub err_truncated: Option<models::PveBoolean>,
24
25    /// process exit code if it was normally terminated.
26    #[serde(rename = "exitcode", skip_serializing_if = "Option::is_none")]
27    pub exitcode: Option<i64>,
28
29    /// Tells if the given command has exited yet.
30    #[serde(rename = "exited")]
31    pub exited: models::PveBoolean,
32
33    /// stdout of the process
34    #[serde(rename = "out-data", skip_serializing_if = "Option::is_none")]
35    pub out_data: Option<String>,
36
37    /// true if stdout was not fully captured
38    #[serde(rename = "out-truncated", skip_serializing_if = "Option::is_none")]
39    pub out_truncated: Option<models::PveBoolean>,
40
41    /// signal number or exception code if the process was abnormally terminated.
42    #[serde(rename = "signal", skip_serializing_if = "Option::is_none")]
43    pub signal: Option<i64>,
44
45
46}
47
48impl QemuExecStatusResponseData {
49    pub fn new(exited: models::PveBoolean) -> QemuExecStatusResponseData {
50        QemuExecStatusResponseData {
51            
52            err_data: None,
53            
54            err_truncated: None,
55            
56            exitcode: None,
57            
58            exited,
59            
60            out_data: None,
61            
62            out_truncated: None,
63            
64            signal: None,
65            
66        }
67    }
68}
69
70